RSS Import | Auto Content Scraper | Fix
-
New Pligger
RSS Import | Auto Content Scraper | Fix
OK, as I mentioned in my paid module review: Auto Content Scraper does fine with importing YouTube videos, except that my thumbnails are all little gray "please wait" icons. This is because RSS data is being encoded in the URL.
My RSS Feed example was:
http://gdata.youtube.com/feeds/base/videos/-/NAMEOFSEARCHTAG
And the resulting thumbail tags were
http://www.youtube.com/watch?v=KRr_eopuvGU&feature=youtube_gdata/default.jpg
So, I edited the smarty template begin_scrape_summary.tpl to automatically strip &feature=youtube_gdata
Around Line 4 (original):
<a href="{$story_url}"><img src="http://img.youtube.com/vi/{$url|replace:'http://www.youtube.com/watch?v=':''|replace:'http://youtube.com/watch?v=':''}/default.jpg" border="0"></a>
Around Line 4 (modified):
<a href="{$story_url}"><img src="http://img.youtube.com/vi/{$url|replace:'http://www.youtube.com/watch?v=':''|replace:'http://youtube.com/watch?v=':''|replace:'&feature=youtube_gdata':''}/default.jpg" border="0"></a>
Similar Threads
-
By chuckroast in forum Modules for Sale
Replies: 108
Last Post: 05-08-2012, 09:29 PM
-
By verdemone in forum Questions & Comments
Replies: 1
Last Post: 05-06-2012, 09:26 PM
-
By SEOemPortugal in forum Questions & Comments
Replies: 2
Last Post: 02-06-2012, 11:35 AM
-
By shibar44 in forum Questions & Comments
Replies: 4
Last Post: 02-22-2011, 10:16 AM
-
By spagib in forum Questions & Comments
Replies: 21
Last Post: 08-10-2010, 05:12 AM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules