Jump to content


Photo

Emby not Scraping Youtube Trailer information?

kodi emby trailer scrapping

  • This topic is locked This topic is locked
52 replies to this topic

#21 Angelblue05 OFFLINE  

Angelblue05

    Advanced Member

  • Developers
  • 12738 posts
  • Local time: 10:39 AM

Posted 15 June 2015 - 12:24 AM

@mike2455

 

I don't personally use trailers so I can't say for sure if trailers work or not, but I'll add it to our trello board so we don't forget to review trailers when we have a moment. :)


Edited by Angelblue05, 15 June 2015 - 12:26 AM.

  • Raze likes this

#22 xnappo OFFLINE  

xnappo

    Advanced Member

  • Developers
  • 4755 posts
  • Local time: 11:39 AM
  • LocationAustin, TX

Posted 15 June 2015 - 06:32 AM

@im85288 - is this just a skin thing with some skins not showing the play trailers button because they don't like the path?



#23 im85288 OFFLINE  

im85288

    Kodi Kruncher

  • Developers
  • 2699 posts
  • Local time: 04:39 PM
  • LocationGeordie Land

Posted 15 June 2015 - 07:56 AM

No, as far as I understand things work as i described. So the emby addon pays no attention to the nfo metadata scraped by emby or any other addon and populates the trailer tags if there are trailers returned by the API call to get trailers. So for example if in the web client you can click on the trailer button, it should then be the same in kodi. If the OP installed the trailers plugin, tested it works in the web client and then did a complete re sync in the emby addon the trailers should be there.

#24 Raze OFFLINE  

Raze

    Member

  • Members
  • 25 posts
  • Local time: 09:39 AM

Posted 15 June 2015 - 02:47 PM

@im85288 - is this just a skin thing with some skins not showing the play trailers button because they don't like the path?

 

@xnappo - first, thanks for your work on the Kodi Addon.

 

To answer your question - the metadata seems to be in a format that the Kodi skin likes (it includes a path directing it to the youtube addon). I have set Emby to "save artwork and metadata in media folders" and then pointed Kodi to those folders and told it to use locally available metadata. When using Emby generated metadata the trailer option does appear and it can be watched. It is stored something like this: <trailer>plugin://plugin.video.youtube/?action=play_video&amp;videoid=nijccxWvyXU</trailer> which is also exactally how Kodi scrapes it (as per post #1).

 

To summarize this thread for you:

  1. I have reviewed the metadata obtained by Emby server and it appears fine. See post above in response to Luke (post #11).
  2. I can play the trailer from the web interface of the server (which would seem to also confirm the metadata is fine?) (post #5)
  3. When I export my library from Kodi (after it has been populated by Emby) there is nothing included between <trailer></trailer> tags in the metadata (posts #1 and #9).
  4. I have confirmed that the trailer option is available when I allow Kodi to scrape the information AND when I tell Koid to use the locally availalbe metadata, generated by Emby (posts #1 and #11)

At first I thought that this was all a result of Emby not scraping the trailer information, but have realized through the help of those repsonding to this thread that Emby does appear to scrape the information correctly.

 

It now seems to me that the Emby addon for Kodi is somehow not passing the trailer metadata to Kodi. Granted my experience is limited but, I don't think it's even a case of the wrong information being passed (i.e. in a format Kodi or the skin doesn't like) as the information is completely blank when doing a Kodi database export (#3 in my list above).

 

Hopefully you can confirm if the metadata is or is not being transfered from Emby server through the Emby Addon to the Kodi database? I'm happy to do more testing and try more things out! Let me know and thanks in advance for any assistance.

 

Sorry for the lengthy response!

 

~Mike



#25 CBers OFFLINE  

CBers

    Advanced Member

  • Moderators
  • 15723 posts
  • Local time: 05:39 PM
  • LocationEngland

Posted 15 June 2015 - 02:51 PM

@mike2455 - what do you mean by "pointed Kodi to those folders"?

Are you adding sources to Kodi?

Also, what do you mean in point 3,"When I export my library from Kodi"?

#26 Raze OFFLINE  

Raze

    Member

  • Members
  • 25 posts
  • Local time: 09:39 AM

Posted 15 June 2015 - 02:57 PM

No, as far as I understand things work as i described. So the emby addon pays no attention to the nfo metadata scraped by emby or any other addon and populates the trailer tags if there are trailers returned by the API call to get trailers. So for example if in the web client you can click on the trailer button, it should then be the same in kodi. If the OP installed the trailers plugin, tested it works in the web client and then did a complete re sync in the emby addon the trailers should be there.

 

@im85288 Are you saying that Emby addon for Kodi intentionally does not grab the trailer metadata? Instead there is some other method (through the trailer plugin on the server) by which trailers should be visiable? 

 

If that is what you are saying, why would the Kodi addon not do both? There are several Kodi skins (at least Confluence, Amber and Transparency) which (based on my - very novice - interpretation of the code) would only give the option to diplay a trailer IF the metadata exisits:

<control type="button" id="11">
<description>Play Trailer</description>
<include>ButtonInfoDialogsCommonValues</include>
<label>20410</label>
<visible>!IsEmpty(ListItem.Trailer) + !Skin.HasSetting(WindowedTrailer)</visible>
</control>

<control type="button" id="15">
<description>Play Trailer Windowed</description>
<include>ButtonInfoDialogsCommonValues</include>
<label>20410</label>
<onclick>PlayMedia($INFO[ListItem.Trailer],1)</onclick>
<visible>!IsEmpty(ListItem.Trailer) + Skin.HasSetting(WindowedTrailer)</visible>
</control>

Hopefully i'm understanding you - correct me if i'm wrong on my interpretation of your post of the code above.

 

Cheers,

 

~Mike.



#27 Raze OFFLINE  

Raze

    Member

  • Members
  • 25 posts
  • Local time: 09:39 AM

Posted 15 June 2015 - 03:09 PM

@mike2455 - what do you mean by "pointed Kodi to those folders"?

Are you adding sources to Kodi?

Also, what do you mean in point 3,"When I export my library from Kodi"?

 

 

@ CBers To answer your first questions - to test to see if the it was the metadata if Kodi was not happy with I did the following:

  1. I set Emby to "save artwork and metadata in media folders" which generates images, artwork and a .nfo file in the folder where the video files are located (c:\users\mike\desktop\movies). This is a temporary directory for testing purposes with only a few movies.
  2. I added a new video source (within a fresh install of Kodi, no Emby installed) which pointed to the same folder (c:\users\mike\desktop\movies).
  3. I forced a refresh of these movies (context menu (press 'c' when movie is highlighted) > movie info > refresh) at which point i was asked if i wanted to use locally stored info, or to rescrape from the internet - i selected use locally stored info.

When doing this, the option to watch a trailer was there and worked beautifully. In fact it told me the youtube addon was needed and asked if i wanted to install. I said yes. Youtube installed and the trailer was played.

 

To answer your second question - when in Kodi you can go into settings > library > export library. This exports a copy of your library (which can be used for backup, transfering to another install, etc). I opened up the file generated by this export and the trailer information is blank. To me this confirms that somewhere along the line the trailer metadata is not being transfered from the Emby server to the Kodi library.

 

~Mike


  • CBers likes this

#28 xnappo OFFLINE  

xnappo

    Advanced Member

  • Developers
  • 4755 posts
  • Local time: 11:39 AM
  • LocationAustin, TX

Posted 15 June 2015 - 03:27 PM

You shouldn't be doing that.

 

Do not add any sources to Kodi at all.

 

You don't need nfos at all.

 

Just follow the instructions in my intro video.

 

xnappo



#29 im85288 OFFLINE  

im85288

    Kodi Kruncher

  • Developers
  • 2699 posts
  • Local time: 04:39 PM
  • LocationGeordie Land

Posted 15 June 2015 - 03:40 PM

@im85288 Are you saying that Emby addon for Kodi intentionally does not grab the trailer metadata? Instead there is some other method (through the trailer plugin on the server) by which trailers should be visiable? 
 
If that is what you are saying, why would the Kodi addon not do both? There are several Kodi skins (at least Confluence, Amber and Transparency) which (based on my - very novice - interpretation of the code) would only give the option to diplay a trailer IF the metadata exisits:

<control type="button" id="11">
<description>Play Trailer</description>
<include>ButtonInfoDialogsCommonValues</include>
<label>20410</label>
<visible>!IsEmpty(ListItem.Trailer) + !Skin.HasSetting(WindowedTrailer)</visible>
</control>

<control type="button" id="15">
<description>Play Trailer Windowed</description>
<include>ButtonInfoDialogsCommonValues</include>
<label>20410</label>
<onclick>PlayMedia($INFO[ListItem.Trailer],1)</onclick>
<visible>!IsEmpty(ListItem.Trailer) + Skin.HasSetting(WindowedTrailer)</visible>
</control>
Hopefully i'm understanding you - correct me if i'm wrong on my interpretation of your post of the code above.
 
Cheers,
 
~Mike.

Like I've been saying from the beginning, we are not doing anything with your local NFOs. As xnappo states this addon does not work that way. The instructions I have given for trailers will work if you follow the steps through.

Thanks

#30 Raze OFFLINE  

Raze

    Member

  • Members
  • 25 posts
  • Local time: 09:39 AM

Posted 16 June 2015 - 01:12 AM

Like I've been saying from the beginning, we are not doing anything with your local NFOs. As xnappo states this addon does not work that way. The instructions I have given for trailers will work if you follow the steps through.

Thanks

 

@xnappo @im85288 I'm sorry for the confusion I've created. I'm aware that Emby does not use the local nfos. I'm aware that I don't need to other add sources. I've only been doing these things for trouble shooting purposes.

 

But lets ignore what I've already done from a trouble shooting perspecitve. I have tried the steps @im85288 has recomended as follows:

  1. Started from a clean install of Emby server and Kodi;
  2. Installed the trailers plugin on the Emby server;
  3. Tested and confirmed that trailers work in the server web client;
  4. Performed a complete library update through the Emby addon;
  5. Attempted to play trailers in Kodi through movies > context menu (press 'c') > movie information

Trailers do not work. Option to play trailer is not available.

 

Cheers,

 

~Mike



#31 im85288 OFFLINE  

im85288

    Kodi Kruncher

  • Developers
  • 2699 posts
  • Local time: 04:39 PM
  • LocationGeordie Land

Posted 16 June 2015 - 06:37 AM

Fair enough, they are working fine for me but mine are local trailers. Perhaps another developer will help you,

Cheers

#32 ursli OFFLINE  

ursli

    Member

  • Members
  • 21 posts

Posted 16 June 2015 - 01:45 PM

I think I'm having the same problem, I can play trailers with the web interface but in Kodi they're not showing up. The web interface metadata editor complains about not having a local trailer (which is true) but the youtube trailer is certainly there and playable.

 

Server Version 3.0.5621.4

Kodi Addon Version 1.0.0

Kodi Version 14.2

 

 

Attached File  webinterface.JPG   28.95KB   4 downloadsAttached File  kodi.JPG   46.79KB   4 downloads


Edited by ursli, 16 June 2015 - 01:48 PM.

  • Raze likes this

#33 Angelblue05 OFFLINE  

Angelblue05

    Advanced Member

  • Developers
  • 12738 posts
  • Local time: 10:39 AM

Posted 17 June 2015 - 01:30 AM

Ok I've added support for youtube trailers. You will need to reset - resync your library for the trailers to be scanned in. It will be available in the next version 1.0.09. :)


  • Raze likes this

#34 CBers OFFLINE  

CBers

    Advanced Member

  • Moderators
  • 15723 posts
  • Local time: 05:39 PM
  • LocationEngland

Posted 17 June 2015 - 02:23 AM

Is that online trailers?

They're not being downloaded?

#35 Angelblue05 OFFLINE  

Angelblue05

    Advanced Member

  • Developers
  • 12738 posts
  • Local time: 10:39 AM

Posted 17 June 2015 - 02:34 AM

They are online - But the url to it needs to be imported. :)


  • CBers and Raze like this

#36 Raze OFFLINE  

Raze

    Member

  • Members
  • 25 posts
  • Local time: 09:39 AM

Posted 17 June 2015 - 11:51 AM

Ok I've added support for youtube trailers. You will need to reset - resync your library for the trailers to be scanned in. It will be available in the next version 1.0.09. :)

 

Awesome! Thank you for working on this and for deciphering my cryptic ramblings and understanding what I was trying to say!

 

This really is going improve the experience in Kodi (at least in my opinion)!

 

Now I just have to hold my breath for the next version! Hopefully it will be soon?

 

~Mike



#37 CBers OFFLINE  

CBers

    Advanced Member

  • Moderators
  • 15723 posts
  • Local time: 05:39 PM
  • LocationEngland

Posted 17 June 2015 - 11:58 AM

They are online - But the url to it needs to be imported. :)

 

So it's importing from Emby ??



#38 Angelblue05 OFFLINE  

Angelblue05

    Advanced Member

  • Developers
  • 12738 posts
  • Local time: 10:39 AM

Posted 17 June 2015 - 07:42 PM

Yes its grabbing the remote trailer in emby if there's no local trailer set. So the trailer button will show and when you select it, it will launch the trailer via the youtube add-on :)


Sent from my iPhone using Tapatalk
  • CBers and Raze like this

#39 Angelblue05 OFFLINE  

Angelblue05

    Advanced Member

  • Developers
  • 12738 posts
  • Local time: 10:39 AM

Posted 18 June 2015 - 04:06 AM

Version 1.0.09 is out, so give it a try and let me know everything is working for trailers. Thanks :)


  • CBers, xnappo and ursli like this

#40 CBers OFFLINE  

CBers

    Advanced Member

  • Moderators
  • 15723 posts
  • Local time: 05:39 PM
  • LocationEngland

Posted 18 June 2015 - 04:15 AM

Version 1.0.09 is out, so give it a try and let me know everything is working for trailers. Thanks :)

 

Seems to be so far on the half-dozen movies I tested it with.

 

Some I have local trailers, which play fine, but some don't have trailers, so they are played from YT.


  • xnappo and Angelblue05 like this





Also tagged with one or more of these keywords: kodi, emby, trailer, scrapping

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users