Howto get Trailers on-the-fly (Youtube Link in NFO)

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
x23piracy Offline
Senior Member
Posts: 164
Joined: Feb 2011
Reputation: 0
Location: Germany
Post: #1
Hi,

i like howto get Trailers working if there is allready a youtube trailer link in the nfo file (I use Ember to Scrape Info initially) i have also Scrapers in XBMC enabled that get maybe missing data (if not found by Ember).

If i try to play a trailer nothing happens... because the youtube links in nfo
cannot be played by xbmc directly... how to get that working?

Do i need to remove all the youtube trailer links in the nfo?

I don't want to download all the trailers locally my wish is to play them on the fly on demand.

Any suggestions?


Greetz X23
find quote
spiff Offline
Retired Developer
Posts: 12,386
Joined: Nov 2003
Post: #2
look at how the current tmdb scraper does it. you basically have to make it plugin:// style urls.
find quote
x23piracy Offline
Senior Member
Posts: 164
Joined: Feb 2011
Reputation: 0
Location: Germany
Post: #3
Hi,

spiff Wrote:look at how the current tmdb scraper does it. you basically have to make it plugin:// style urls.

yes i'll have a look.
One question, if there is no trailer url in an existing nfo and the tmdb scraper is enabled and i goto movie info > trailer it gets the trailer on the fly?


Greetz X23
find quote
spiff Offline
Retired Developer
Posts: 12,386
Joined: Nov 2003
Post: #4
no, obtaining trailer links is done as part of the scraping, something you skip entirely if you have a nfo in there.
find quote
x23piracy Offline
Senior Member
Posts: 164
Joined: Feb 2011
Reputation: 0
Location: Germany
Post: #5
Hi,

spiff Wrote:no, obtaining trailer links is done as part of the scraping, something you skip entirely if you have a nfo in there.

means the only way to get this working is to store the trailer url in nfo like the plugins would trigger them right?

Is there a way to batch replace those links in nfo's or need i do something with delphi by myself? (have a library about 1000 movies).

Is the Problem also there if i delete all trailer links and the rescrape with xbmc? or must i delete the complete existing nfo's (Ember) and the rescrape?

Edit:

I tryed to refresh the movie information (tmdb) in my test installation and after that the trailer button worked, the existing artwork (poster, nfo) was not replaced. How can i rescrape my entire library if allready nfo files exists? (i don't mean updatelibrary) update hole movie info.


Greetz X23
(This post was last modified: 2011-05-03 17:42 by x23piracy.)
find quote
olympia Offline
Team-XBMC Member
Posts: 2,493
Joined: May 2008
Reputation: 32
Post: #6
If you have nfo, scraping gets skipped.
You need to re-scrape everything to get this worked.

Batch re-scraping is not possible, so yes you either need to delete all the nfos, then re-scrape with xbmc (tmdb scraper only), or replace the URL in the nfos somehow.

Can you please explain why did you feel the need to open another thread on the exact same topic as previously?
(This post was last modified: 2011-05-03 21:38 by olympia.)
find quote
x23piracy Offline
Senior Member
Posts: 164
Joined: Feb 2011
Reputation: 0
Location: Germany
Post: #7
Hi,

olympia Wrote:so yes you either need to delete all the nfos, then re-scrape with xbmc (tmdb scraper only), or replace the URL in the nfos somehow.

can u tell me how the url must look like so i can do the batch thing by myself,
if that is not working i will delete my nfo's.

Where is the trailer data stored in xbmc library where to find it?

olympia Wrote:(tmdb scraper only)

You mean not with Ember in any combination not with xbmc itselfs or?
As i know i only can activate a single scraper on the same time in xbmc right?

olympia Wrote:Can you please explain why did you feel the need to open another thread on the exact same topic as previously?

Sorry my bad...that will never happen again Sad


Greetz X23
(This post was last modified: 2011-05-03 22:16 by x23piracy.)
find quote
olympia Offline
Team-XBMC Member
Posts: 2,493
Joined: May 2008
Reputation: 32
Post: #8
actually there is a third one:
http://forum.xbmc.org/showthread.php?tid=100690

tmdb scraper only means that currently from the in-built scrapers, only that one supports trailer scraping from tmdb.

Trailer link stored in the database.

The URL should look like this (example):
plugin://plugin.video.youtube/?action=play_video&videoid=HlsM2_8u_mk

...but even in case you manage to change to URLs, you will need to re-scan everything (to re-import the nfos).

in case you delete the nfos, but keep the posters and fanarts created by Ember, xbmc will keep those while scraping metadata from tmdb.
find quote
x23piracy Offline
Senior Member
Posts: 164
Joined: Feb 2011
Reputation: 0
Location: Germany
Post: #9
Hi,

okay seems the best way is to delete the nfo made by ember keep the rest and let xbmc's scraper do the rest...

But actually of complete nfos all my movies are in the xbmc database shown propperly but what happens if i delete my nfos and xbmc is not finding any movie when rescraping with the only intention to get the trailer... i think it's missing then in the db right?

What then how to have them all again?

I know that there is a plugin called missing movies or something it displays movies and shows available on (hdd) but missing in database. is that the way i have to use? (Would be hard to compare a directory listing against a visible movie list from xbmc on the tv that have to be scrolled).


Greetz X23
(This post was last modified: 2011-05-03 23:10 by x23piracy.)
find quote
activate Offline
Fan
Posts: 598
Joined: Feb 2011
Reputation: 1
Post: #10
Geez I wasn't sure to which thread to post, but hope this is Ok!

Trying to follow this thread, an i right in that the default xbmc movie scraper tmdb is the correct option. I am experiencing that the youtube trailers are not working or they are but stuttering a lot and sometimes crashing xbmc. I have used the default scraper and have not made any changes whatsoever. Is it the problem elsewhere in this case? Thanks.
http://pastebin.com/TGGB2Uxm

Macmini Server 2011 i7 Quad Core, OS 10.8.2, Amp Onkyo TX-SR308 USB WD drives 3x2TB TV Samsung Plasma 720p EyeTV Integration
There are only 10 kinds of people in this world, those who understand binary, and those who don't.



(This post was last modified: 2011-05-05 14:41 by activate.)
find quote
olympia Offline
Team-XBMC Member
Posts: 2,493
Joined: May 2008
Reputation: 32
Post: #11
No, that is not the right thread and not a full debug log.
find quote
x23piracy Offline
Senior Member
Posts: 164
Joined: Feb 2011
Reputation: 0
Location: Germany
Post: #12
Hi,

olympia Wrote:The URL should look like this (example):
plugin://plugin.video.youtube/?action=play_video&videoid=HlsM2_8u_mk

...but even in case you manage to change to URLs, you will need to re-scan everything (to re-import the nfos).

finally i replaced the string:

Code:
http://www.youtube.com/watch?v=

against:

Code:
plugin://plugin.video.youtube/?action=play_video&videoid=

keept my posters and fanarts and rescraped the library.
Thanks Olympia for your help and suggestions.


Edit:

Another more easy way is to edit the xbmc db directly, i used SQLite Database Browser:
http://sourceforge.net/projects/sqlitebrowser/

I've opened my Video Database (MyVideos34.db) and executed the following sql command:

Code:
update movie
set c19 = replace(c19,'http://www.youtube.com/watch?v=','plugin://plugin.video.youtube/?action=play_video&videoid=');

(c19 is the table (movie) column for the trailer)


Greetz X23
(This post was last modified: 2011-05-14 13:45 by x23piracy.)
find quote
olancasey Offline
Junior Member
Posts: 26
Joined: Dec 2010
Reputation: 0
Location: Ireland
Post: #13
Finally !!! Trailers working.. thank you..
is there away of setting up ember to scrape the urls correctly at all?
find quote
x23piracy Offline
Senior Member
Posts: 164
Joined: Feb 2011
Reputation: 0
Location: Germany
Post: #14
Hi,

olancasey Wrote:Finally !!! Trailers working.. thank you..
is there away of setting up ember to scrape the urls correctly at all?

you may ask this better in ember revisited thread:
http://forum.xbmc.org/showthread.php?tid...ight=ember

Another solution may can be an option in the youtube plugin to set link style (workaround), ask in youtube plugin thread:
http://forum.xbmc.org/showthread.php?tid...ube+plugin


Greetz X23
find quote
fional Offline
Posting Freak
Posts: 903
Joined: May 2011
Reputation: 17
Location: Ireland
Post: #15
x23piracy Wrote:Hi,



finally i replaced the string:

Code:
http://www.youtube.com/watch?v=

against:

Code:
plugin://plugin.video.youtube/?action=play_video&videoid=

keept my posters and fanarts and rescraped the library.
Thanks Olympia for your help and suggestions.


Edit:

Another more easy way is to edit the xbmc db directly, i used SQLite Database Browser:
http://sourceforge.net/projects/sqlitebrowser/

I've opened my Video Database (MyVideos34.db) and executed the following sql command:

Code:
update movie
set c19 = replace(c19,'http://www.youtube.com/watch?v=','plugin://plugin.video.youtube/?action=play_video&videoid=');

(c19 is the table (movie) column for the trailer)


Greetz X23

Thanks Smile I just tried this and it works out well. I'm real happy with that, I just wish it was something that was done im EMM-R automatically Smile
find quote
Post Reply