Omit search when adding TVDb ID

tnt wrote 6 years ago: 1

IDK what's causing this problem https://i.imgur.com/0S3sNgE.png, but it became very common recently. For example at the current moment it's not working for any show (for me at least). I suppose it's related to recent TVDb's "improvement", and they still can't get everything working properly.

Can we have a way to add TVDb ID directly, not via search?

tnt wrote 6 years ago: 1

Nevermind. Found the workaround.

Some explanation however would be nice anyway...



Aidan wrote 6 years ago: 1

I guess adding the show first, then using the episode importer afterwards would work as a workaround.


gazza911 wrote 6 years ago: 1

Until thetvdb's API is fully fixed, save this to your bookmark bar so that you can set it via the externals page when you press the bookmark:

javascript:var response = prompt('Please enter thetvdb ID'); if (response !== null && response !== undefined && parseInt(response) > 0) { $('#showexternal-thetvdb').val(response); $('label[for="showexternal-thetvdb"]').text('Thetvdb - set to ' + response); }

tnt wrote 6 years ago: 1

Aidan wrote:
I guess adding the show first, then using the episode importer afterwards would work as a workaround.

And what would you do when the show is already added without TVDb ID?

tnt wrote 6 years ago: 1

gazza911 wrote:
Until thetvdb's API is fully fixed, save this to your bookmark bar so that you can set it via the externals page when you press the bookmark:

javascript:var response = prompt('Please enter thetvdb ID'); if (response !== null && response !== undefined && parseInt(response) > 0) { $('#showexternal-thetvdb').val(response); $('label[for="showexternal-thetvdb"]').text('Thetvdb - set to ' + response); }

Thank you, works like a charm :)

So, is the fault completely on their side, or something needs to be changed in TVmaze code as well? I've heard something about them switching from XML to JSON, I suppose this changes something for us?


david wrote 6 years ago: 1

Are there still any problems with the tvdb API at this point or can we close this? :)

tnt wrote 6 years ago: 1

david wrote:
Are there still any problems with the tvdb API at this point or can we close this? :)

Well, if I got that right there was never a problem on our end, so probably there's nothing further to discuss :)

However I still vote for the standard ability to directly enter TVDb ID, omitting the searchbox. Like it's made in show request form, or when editing existing external.

And another small thing to ask. Next time when some external thing gets broken, could you guys give us a heads-up, please? Something like "we know that [xxx] is broken, it's because of [xxx], meanwhile you could do [xxx] or [xxx] as a workaround" :)


david wrote 6 years ago: 1

Hmm, I don't have a simple way to toggle between "search" and "direct entry" right now. If there are any problems in the future, I'll switch it to "direct entry" temporarily or permanently.

tnt wrote 6 years ago: 1

david wrote:
Hmm, I don't have a simple way to toggle between "search" and "direct entry" right now. If there are any problems in the future, I'll switch it to "direct entry" temporarily or permanently.

Deal :)

tnt wrote 6 years ago: 1

It still happens. While processing a long list from edit request I've noticed, that it usually happens when show on tvdb have no episodes. Maybe that's the reason why their response is malformed?


bungle wrote 6 years ago: 1

I notice this too, but you could always add the show with no externals and then add them back in once the show has been created.

what this won't fix though is when the importer doesn't find the episodes - even though they are visible over at thetvdb.


david wrote 6 years ago: 1

tnt wrote:
It still happens. While processing a long list from edit request I've noticed, that it usually happens when show on tvdb have no episodes. Maybe that's the reason why their response is malformed?

If you have a specific example, I can check it out.

tnt wrote 6 years ago: 1

bungle wrote:
I notice this too, but you could always add the show with no externals and then add them back in once the show has been created.

what's the difference? adding tvdb id to existing show is also done via search. only when you edit the id you could enter it manually.
on the other hand, when there's a problem (i.e. you trying to add id which already in use), the search field is replaced with manual input field and you could directly enter the id. hence my initial idea, in case of "loading failed" error, switch to manual input.

what this won't fix though is when the importer doesn't find the episodes - even though they are visible over at thetvdb.

probably they in non-English language or don't have an airdate, afaik those are the reasons why they can't be imported.

tnt wrote 6 years ago: 1

david wrote:
If you have a specific example, I can check it out.

For example Americanah, Betty, Brave New World

They all present on TVDb, but don't have any episodes yet. All return "Loading failed" error, so I used gazza's javascript doohickey to add the id.


bungle wrote 6 years ago: 1

tnt wrote:
what's the difference? adding tvdb id to existing show is also done via search.

no, if you go to the externals link via a shows' page here you can add in id's directly with no searching. then using the episodes importer under Tools if you need to.

tnt wrote 6 years ago: 1

bungle wrote:
no, if you go to the externals link via a shows' page here you can add in id's directly with no searching. then using the episodes importer under Tools if you need to.

either we're talking about something different or you're using a different TVmaze :D

adding externals to existing show: https://i.imgur.com/I0k28d4.png


david wrote 6 years ago: 1

Currently, if the show already has externals, the input changes to a regular text field instead of a search-based field.


david wrote 6 years ago: 1

OK, I managed to compensate for this specific error. Please try again and let me know if there are more problems.

tnt wrote 6 years ago: 1

david wrote:
Currently, if the show already has externals, the input changes to a regular text field instead of a search-based field.

yeah, I know. that's what I've said earlier:

only when you edit the id you could enter it manually.

david wrote:
OK, I managed to compensate for this specific error. Please try again and let me know if there are more problems.

thank you! will check it on first occasion.

Try 30 days of free premium.