Trim (Shorten) Video Description Based on Word / Phrase

This topic is: resolved

 

Thank you for contacting me. Please note that I live in the GMT+3 time zone - responses might be delayed by this.

This topic has 3 replies, 2 voices, and was last updated 3 years, 10 months ago by Szabi – CodeRevolution.

Viewing 3 reply threads
  • Author
    Posts
    • #2491


      dmahtani
      Participant
      Post count: 1

      Hello,

      I am using your Youtubomatic plugin to pull Youtube videos and publish them as posts on my website. It works great for this.

      It is able to take the entire video description on Youtube and add it to the post. However, Youtube posts often have a description of the video then a large amount of template text at the bottom of the video description. It will usually have social media links or disclaimers which are not desired in my website posts.

      Is there a way for Youtubomatic to be able to filter out this text based on a specified word / phrase?

      Here is an example video description (below). If I could specify the phrase “★Follow Exodus on Social Media★” to Youtubomatic, then it would know to delete this phrase and any text after it. So the video description would change as follows.

      <span style=”text-decoration: underline;”>BEFORE</span>

      What is Tron Trx? The Tron blockchain and Tron coin, TRX, continue to remain a top alt-coin. As Justin Sun put it, if Ethereum is an iPhone, Tron is Andriod.

      ★Follow Exodus on Social Media★
      🐥 https://twitter.com/exodus_io
      🎭 https://www.facebook.com/exodus.io
      📸 https://www.instagram.com/exodus_io/

      This content is for informational purposes only and is not investment advice. You should consult a qualified licensed advisor before engaging in any transaction.

      <span style=”text-decoration: underline;”>AFTER</span>

      What is Tron Trx? The Tron blockchain and Tron coin, TRX, continue to remain a top alt-coin. As Justin Sun put it, if Ethereum is an iPhone, Tron is Andriod.

    • #2492


      Szabi – CodeRevolution
      Keymaster
      Post count: 4577

      Hello,

      First of all, thank you for your purchase.

      What you request was not possible until now, however, I updated the plugin to v2.6.2 and added two new settings fields in importing rule settings:

      ‘Run Regex On Content’ and ‘Replace Matches From Regex’

      Using these, you will be able to write Regex expressions to match, replace and remove content from the imported video description.

      You can use this example expression to remove everything that is located after “Follow Exodus on Social Media”:

      Follow Exodus on Social Media[\s\S]+

      This should be added in the ‘Run Regex On Content’ settings field.

      Tutorial video for Regex feature: https://www.youtube.com/watch?v=i38j6o5wN2w

      Regards, Szabi – CodeRevolution.

    • #2493


      dmahtani
      Participant
      Post count: 1

      Thank you so much! This was exactly what I needed. I appreciate you putting together the regex expression for me as well. Your plugins are great!

    • #2494


      Szabi – CodeRevolution
      Keymaster
      Post count: 4577

      I am happy to help! 🙂

      If you like my plugins, please give them a rating on CodeCanyon, it is really appreciated. 😉

      Regards,

      Szabi – CodeRevolution.

Viewing 3 reply threads

The topic ‘Trim (Shorten) Video Description Based on Word / Phrase’ is closed to new replies.