The TVDB scraper is currently broken due to upgrade works at TheTVDB site. We hope this issue will be resolved quickly.

WIP Ember Media Manager ALPHA - Discussion Thread
(2017-05-10, 12:45)axlt2002 Wrote:
(2017-05-09, 20:16)ralfonat Wrote:
(2017-05-09, 16:37)axlt2002 Wrote: Basically, which is the code/syntax to save in a local variable (e.g. IMDb_id) the received tt4574334 value? I have tried the following code but the result in IMDb_id is None:

for item in jSonResponse['result']['tvshows']:
             IMDb_id = item.get('uniqueid[0]')

Thanks for any help...and sorry for the stupid question, but I'm just facing JSON and python for the first time! Rolleyes



Thanks for your answer ralfonat.

I have tried both solutions you proposed but the first one doesn't provide any result while the second one gives a syntax error...I'm puzzled...and stuck! Confused

Sorry, I hit reply earlier before noticing there was a list inside the dict.

ralfonat was close, try the following instead.


If you're looking to loop through it in the case that the json returns multiple shows, you can use the following code to do that.

for item in jSonResponse['result']['tvshows']:
    imdb_id = item['uniqueid']['imdb']
Thread Rating:
  • 2 Vote(s) - 5 Average

Messages In This Thread
RE: Ember Media Manager ALPHA - Discussion Thread - by FordPrefect138 - 2017-05-10, 19:07
nfo file status? - by NightMyst - 2017-06-21, 07:24
Audio metadata error - by Doomnie - 2017-11-04, 08:16
EmberMM Import Poster.jpg - by MePoEmberMM - 2018-02-06, 01:27
User rating sync - by fred_gaou - 2018-04-28, 22:25
database is locked - by gorb - 2019-08-19, 11:41

Logout Mark Read Team Forum Stats Members Help
Ember Media Manager ALPHA - Discussion Thread52