Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

XBMCnfoTV matching #3277

Closed
kimpenhaus opened this issue Nov 20, 2019 · 8 comments
Closed

XBMCnfoTV matching #3277

kimpenhaus opened this issue Nov 20, 2019 · 8 comments

Comments

@kimpenhaus
Copy link

kimpenhaus commented Nov 20, 2019

Describe the bug
Please see text below, in short: TV shows are not mapped properly with XBMCnfoTV bundle.

To Reproduce
See text and screenshots

Expected behavior
Would be great to have TV-shows mapped properly.

Screenshots
in the text below

Logs (Logs directory where Ombi is located)
Can' t find relating entries in the logs but will provide with little help

Desktop (please complete the following information):

  • OS: [Docker - x64 - Linux 3.10.105 #24922]

Ombi Version (please complete the following information):

  • Version [3.0.4892]
  • Media Server [Plex]

Additional context


Hi Jamie,

based on issue #2695 I assume that I am one of the very minority using the old XBMCnfo bundles with Plex - having nfo files with meta data. I saw in the other issue and its commits that you've added support for that - movies is very fine but with tv shows I have some problems.

I am using the XBMCnfoTvbundle together with provider tvdb. From commit cb7c799 I saw the regex you are using to determine wether the provider is imdb or tvdb is:

"//[0-9]+/([0-9]{1,3})/([0-9]{1,3})"

I must confess I haven't debugged yet (cause I am mainly running on osx) but I think there is an issue with that. From what I can see Plex uses different styles wether it is the tv-show itself or just an episode of a season.

  • TV-show guids look like: com.plexapp.agents.xbmcnfotv://153021?lang=xn
  • Episode guids look like: com.plexapp.agents.xbmcnfotv://153021/2/1?lang=xn

I think it's plain simple to see that the regex is just matching those season/episode guids - not those of the show. And I think metadata is collected on top level?

At least that's what I think and that's why I think it leads to not matching shows - which is expressed by NULL values inside the db OmbiExternal.db:

grafik

And of course no matching on the search view:

grafik

I am not pretty sure if you will do something about that - as it is not mainstream - but I will try to support you with as much information needed to get it working, if you want to 😁

Thanks for your time,
cheers
m.

PS: Sorry for double posting - got some problems with the bot - hopefully he will let me pass this time 😉

@ombi-bot
Copy link
Contributor

Hi!
Thanks for the issue report. Before a real human comes by, please make sure you used our bug report format.
Have you looked at the wiki yet? https://github.com/tidusjar/ombi/wiki/
Before posting make sure you also read our FAQ.
Make the title describe your issue. Having 'not working' or 'I get this bug' for 100 issues, isn't really helpful.
If we need more information or there is some progress we tag the issue or update the tag and keep you updated.
Thanks!
Ombi Bot.

@tidusjar
Copy link
Member

Hey man!

Thanks for the detailed bug report and investigation! You have saved me a tonne of time!

I'll add some more unit tests to cover this scenario to see if I can reproduce it and then fix it.

Thanks.

@tidusjar
Copy link
Member

tidusjar commented Nov 20, 2019

Question, do you know what the value is for the IDs? Is it TvDb for tv and themoviedb for movies?

How does the movie string look like?

tidusjar added a commit that referenced this issue Nov 20, 2019
@tidusjar
Copy link
Member

I've pushed some changes to develop, but I'm making the assumption that movies will not be in that format: //153021?lang=xn

If this is not the case can you please let me know and I can see what I can do for the movies.

@kimpenhaus
Copy link
Author

Hey Jamie,

wow that was quick - thanks a thousand times.

Regarding your questions:

  • on my site movie GUIDs look like com.plexapp.agents.xbmcnfo://tt0120586?lang=xn

But in general you have the ability to set the provider - in my case its imdb - thats why movie id's look like this and works out of the box). Kodi movies nfo

Same is for the TV shows (Kodi tv-shows nfo - I am fine with the assumptions you did. (as I use the provider tvdb with shows)

As soon as my docker gets updated I will let you know if it works - thanks again!

@tidusjar
Copy link
Member

Excellent, let me know how it goes, this will only be available in the develop version of the docker container as this has not been pushed to master yet

@kimpenhaus
Copy link
Author

grafik

That's great mate! Works 👍

Thanks a lot!

@tidusjar
Copy link
Member

Excellent!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants