SageTV Community

SageTV Community (http://forums.sagetv.com/forums/index.php)
-   Batch Metadata Tools (http://forums.sagetv.com/forums/forumdisplay.php?f=46)
-   -   Metadata from thetvdb.com broken? (http://forums.sagetv.com/forums/showthread.php?t=66156)

graywolf 11-16-2019 11:23 AM

Metadata from thetvdb.com broken?
 
Looks like BMT metadata lookup from thetvdb.com is broken?

Or is it just me?

SHS 11-16-2019 11:48 AM

Quote:

Originally Posted by graywolf (Post 622837)
Looks like BMT metadata lookup from thetvdb.com is broken?

Or is it just me?

It not you there where some big change's on thetvdb.com so many other apps are also broken too.

graywolf 11-16-2019 03:36 PM

Did anyone pick up BMT from Stuckless or will this be the end of getting metadata via BMT?

Are there alternates?

Is there a method to have BMT pull metadata from another source?
I only see thetvdb.com or themoviedb.org

peternm22 11-16-2019 07:50 PM

I checked thetvdb forum and it looks like almost every app is broken right now. The new API (v3) was suppose to allow old clients using the previous API (v2) to work without problem. I don't think it was their intention to break compatibility for older apps using the old API, I think they are just running into some problems migrating everything. Hopefully it will be able to be fixed on their end and we won't need any updates to BMT. That might be wishful thinking though.

graywolf 11-26-2019 12:31 PM

:clap:
Looks like thetvdb got their stuff fixed.
BMT is working again for Find Metadata from them.
:clap:

KryptoNyte 11-26-2019 06:20 PM

How do they do it ... for free?

awhenry 12-20-2019 11:39 AM

I think possibly we are going to find ourselves in this same predicament again in a week or so. I've been getting emails from thetvdb personally indicating I need to update my account info with them or my API key will no longer work after December 31st. I suspect the owner of the API key used by BMT (or rather the thetvdbapi library it uses) is getting similar emails, though it appears the project is no longer maintained (last update four years ago), so doubtful anyone will receive or respond to them. In theory someone could pick up the thetvdbapi project that BMT uses and fix this, but you can longer get the API key version that project uses, so a quick key update seems not to be an option, and moving to the updated API key version appears to require substantial code changes.

Hopefully I'm wrong, however just in case, is there something other than BMT that can be used to pull in metadata and fanart for SageTV?? Though I'd hate to change, I've been happily using it for many many years now.

Thanks.

wayner 12-20-2019 12:57 PM

I am pretty sure that stuckless is the one who wrote BMT. He just moved on from SageTV but he is still around here and hopefully he can update the api key, assuming that it is just a trivial amount of work.

graywolf 01-29-2020 10:25 AM

Looking like itís broken again

Not much of a programmer (bash/ksh, basic java/groovy, learning python and working with json in new position) but interested in maybe see what is happening if someone could point me to the source code although very time limited

awhenry 02-03-2020 12:00 PM

Well, I can help with that much. Code for the tvdb api stuff is here.

I've poked at it a little, but haven't had time to dig in too deeply yet, and likely won't for a little while (if ever). My suspicion is that the v1 API that this code uses is deprecated and being gradually discontinued, or just breaking and not being fixed. I found a similar project that uses the current supported API here, and my thought is to use that as a reference to "fix" the broken one by upgrading it to the current version. However, I haven't been able to find any v1 API documentation yet, so I'm not even sure what some of these calls are supposed to return, and many of them don't exist in the current API version.

An alternative would be to hack phoenix to just use the other library, but I have not looked at that approach at all to see if it is even remotely feasible. It might be worth looking at the code anyway to see exactly which functions phoenix makes use of though so you know how much "fixing" is even needed; if some of the discontinued "dvd" stuff isn't used anywhere, that would simplify the fix for example (since those calls are all gone).

Now, if you do fix the tvdb library, I have no idea how you would push that fix out for everyone to get via an automatic update, but I suppose one thing at a time.

Best of luck. Post back if you make any progress.

EnterNoEscape 02-04-2020 06:39 PM

The exact code that would need to be updated appears to be here: https://github.com/stuckless/sagetv-...temParser.java

thetvdb-java referenced in the post above is likely the best thing to use since it's clearly still maintained unlike thetvdbapi currently being used. The changes look very straight forward, I might just try to take care of this one myself if time permits.

jt4242 02-05-2020 10:20 AM

That would be wonderful if you could!! I really miss TVdb!

tvmaster2 02-05-2020 11:14 AM

Quote:

Originally Posted by graywolf (Post 623879)
Looking like itís broken again

Not much of a programmer (bash/ksh, basic java/groovy, learning python and working with json in new position) but interested in maybe see what is happening if someone could point me to the source code although very time limited

Hi. How would one see, or know it's broken - where does the metadata show up, visually?

jt4242 02-05-2020 02:35 PM

I import a lot of TV/movie files into Sage and they often show up with no info - description, etc. So I go into BMT (batch metadata tools) and click on Browse (top right). A panel opens on the left and partway down is "Sage Video Imports by folder". If I click on a show needing info, it goes into a screen showing all the metadata fields.

I click on Find Metadata at the top and make sure the show name, season and episode data is correct in the window that opens. And I choose TV and thetvdb.com or Movie and Themoviedb.org. Then I click Search. It comes up with a list of titles, and I select the correct one and then it used to fill the fields. Now, it shows the titles but, after clicking on the one I want, it just says "Unable to get metadata"

EnterNoEscape 02-05-2020 05:32 PM

I looked at it a bit last night. The code doesn't compile as presented on GitHub because of some outdated dependencies. After fixing that, it looks like I just need to slightly modify the behavior of 4 classes (already did 2 of them) and re-compile. The only thing I don't like about the new library is that it brings 3 more libraries along with it. It would be really nice if SageTV ran plugins in their own isolated instances so the new libraries wouldn't be potential sources of conflict.

tvmaster2 02-06-2020 11:22 AM

Quote:

Originally Posted by jt4242 (Post 624038)
I import a lot of TV/movie files into Sage and they often show up with no info - description, etc. So I go into BMT (batch metadata tools) and click on Browse (top right). A panel opens on the left and partway down is "Sage Video Imports by folder". If I click on a show needing info, it goes into a screen showing all the metadata fields.

I click on Find Metadata at the top and make sure the show name, season and episode data is correct in the window that opens. And I choose TV and thetvdb.com or Movie and Themoviedb.org. Then I click Search. It comes up with a list of titles, and I select the correct one and then it used to fill the fields. Now, it shows the titles but, after clicking on the one I want, it just says "Unable to get metadata"

Is there a way for BMT to scan an entire folder and insert the metadata artwork/fanart for multiple files? The only way I can make it work is by drilling into each film/tv show one-at-a-time

graywolf 02-07-2020 07:50 AM

At work so going by memory what I do
SageTV import folders
Go to folder I want (could do here but would get everything)
Then there is an ďaction ď dropdown near top
Select update metadata
Have several choices to include subdirectories, update only without metadata or all, etc
Start it
Bottom of left column shows progress success/fail

Hope this helps

I also set/use the matcher feature
Get metadata for 1 show in a directory, set matcher using the show name for directory and it then ties all in that directory to that thetvdb Id number

JREkiwi 02-07-2020 12:22 PM

You can do this within SageTV with the CMT plugin.

John

t4runnr 02-14-2020 08:23 PM

Any update on this?

I'd like to try to learn how to fix it but I have no clue on where to start.

EnterNoEscape 02-24-2020 07:18 PM

I'm slowly getting through porting the code to use the latest API. Images are handled differently enough that I need to significantly rewrite some of the code. It's not hard so much as I don't have a lot of free time to do this.


All times are GMT -6. The time now is 01:51 PM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2020, vBulletin Solutions Inc.
Copyright 2003-2005 SageTV, LLC. All rights reserved.