PSA: The forum server will be physically migrated to a new datacenter. Expect a large downtime of the forum between the 27th and the 29th of September.

Is THETVDB scraper using the new TVDB 2.0 api?

  Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
yhs4260 Offline
Junior Member
Posts: 27
Joined: Sep 2014
Reputation: 0
Post: #1
Ronseal.

Is it? If not, will a new version be ready in time for the October 1st shut off?

Thanks!
find quote
Martijn Offline
Team Kodi
Posts: 17,044
Joined: Jul 2011
Reputation: 312
Location: Dawn of time
Post: #2
No we still use the old one

Read/follow the forum rules.
For troubleshooting and bug reporting, read this first
Interested in seeing some YouTube videos about Kodi? Go here and subscribe
find quote
yhs4260 Offline
Junior Member
Posts: 27
Joined: Sep 2014
Reputation: 0
Post: #3
Thanks.

Is there a plan to make a new version use the new Api?

I ask as the API 1 is presently experiencing some issues at the moment, and from what I gather there is not much priority to fix them as this will encourage/push developers to using the new Api.

Also, every single user is going to need a unique login/token.

Do we have a Doomsday clock?!!
find quote
ironic_monkey Offline
Posting Freak
Posts: 1,496
Joined: Nov 2013
Reputation: 71
Post: #4
fairly certain there will be a change as part of the work with getting the python scrapers up to snuff.
find quote
jjd-uk Offline
Team-Kodi Member
Posts: 6,367
Joined: Oct 2011
Reputation: 160
Post: #5
Indeed the work on the python scraper appears to have used the 2.0 API however it's still a work in progress, see https://github.com/phate89/xbmc/tree/cha...n_scrapers

However that will only be a solution for v18 if it gets completed, so there will also need to be a strategy for v17 and below, whether that be update the existing thetvdb xml scraper or advise use of tmdb tv xml scraper.
find quote
yhs4260 Offline
Junior Member
Posts: 27
Joined: Sep 2014
Reputation: 0
Post: #6
any news on this for prior to v17 builds?

doomsday is under 40 days away!
find quote
scudlee Offline
Team-Kodi Member
Posts: 932
Joined: Jul 2011
Reputation: 63
Post: #7
As it happens, I had already mostly written a regex-based scraper for the 2.0 API a while back, but never really had the motivation to finish it due to the expected advent of Python scraping (which is much more suitable for the kind of hoops you have to jump through).

Anyway, I finished it up and here it is:
https://mega.nz/#!CJkiDBxR!O4EoEOPCQx4S5...Ly0ScTJmfE

This will install as "The TVDB (json)" to keep it separate from the original for testing purposes.

Pros:
It works (as far as I can tell).
It has all the same features as my previous XSLT version.
I also added in a language fallback option for searching and details (much requested).

Cons:
Completely backwards incompatible. You'll need to refresh all your shows for new episodes to appear (due to the different episodeguide URLs).
It's noticeably slower. A lot more separate files have to be downloaded. Especially for long shows, due to paginated episode lists.
The code is an ungodly tangled mess.


Make of it what you will.
find quote
Karellen Offline
Team-Kodi Member
Posts: 2,955
Joined: Apr 2017
Reputation: 51
Post: #8
@scudlee,

Thanks for the download link. I download and installed the new scraper on my test machine. Ran the scraper on 5 dummy TV Shows I added new. Seemed to scrape no problems at all. I see what you mean by it being slower. Smile

Is this meant to be the replacement for when TVDB shutdown API 1.0 in 4 weeks?

My Signature
Links to : Forum rules (wiki) | Banned_Add-ons (wiki) | Free Movies/TV Shows | Debug Log (wiki) || Artwork (wiki) | NFO_files (wiki) | Import-Export_library (wiki)
find quote
Razze Offline
Team-Kodi Member
Posts: 1,643
Joined: Jan 2015
Reputation: 51
Location: Osnabrück, Germany
Post: #9
Well it's not really like there is an alternative. At least not for pre v18
find quote
scudlee Offline
Team-Kodi Member
Posts: 932
Joined: Jul 2011
Reputation: 63
Post: #10
Pull Request sent.
find quote