How to get IMDB id for TV Shows

Running FileBot from the console, Groovy scripting, shell scripts, etc
Post Reply
KufuT
Posts: 1
Joined: 08 Jun 2017, 04:17

How to get IMDB id for TV Shows

Post by KufuT »

Hi there

I've been searching over this forum and the internet for 2 days. Couldn't find any information. Sorry for double post if exist. It is very well working for movies but not for the series.

What I need is to rename TV Shows with IMDb id because it makes everything easier.

http://www.filebot.net/naming.html

This page suggests to use imdbid but it is not retrieved for series.

I tried this command

Code: Select all

filebot -script fn:xattr --action test ballers/ --db xattr
And result has no IMDB id

Code: Select all

net.filebot.filename: Ballers.2015.S01E02.PROPER.HDTV.x264-KILLERS.mp4
	net.filebot.metadata: {"@type":"Episode","seriesName":"Ballers","season":1,"episode":2,"title":"Raise Up","absolute":2,"airdate":{"year":2015,"month":6,"day":28},"id":5232453,"seriesInfo":{"database":"TheTVDB","order":"Airdate","language":"en","id":281714,"name":"Ballers","aliasNames":["Ballers (2015)","Nagypályások","Игроки","בולרז"],"certification":"TV-MA","startDate":{"year":2015,"month":6,"day":21},"genres":["Comedy","Drama","Sport"],"network":"HBO","rating":8.2,"ratingCount":23,"runtime":30,"status":"Continuing"}}
I've also tried all sort of types with fn:amc using {imdbid} tag with no success.

Code: Select all

filebot -script fn:amc --action test ballers/ --def "seriesFormat={imdbid}_{s00e00}_{vf}{'_'+group}"
Result

Code: Select all

Run script [fn:amc] at [Thu Jun 08 07:55:33 EET 2017]
Parameter: seriesFormat = {imdbid}_{s00e00}_{vf}{'_'+group}
Argument[0]: /home/files/series/ballers
Input: /home/files/series/ballers/S01E02_480p_KILLERS.mp4
Input: /home/files/series/ballers/S01E07_480p_BATV.mp4
Input: /home/files/series/ballers/S01E09_480p_BATV.mp4
Input: /home/files/series/ballers/S01E10_480p_BATV.mp4
xattr: [S01E02_480p_KILLERS.mp4] => [Ballers - 1x02 - Raise Up]
xattr: [S01E07_480p_BATV.mp4] => [Ballers - 1x07 - Ends]
xattr: [S01E09_480p_BATV.mp4] => [Ballers - 1x09 - Head-On]
xattr: [S01E10_480p_BATV.mp4] => [Ballers - 1x10 - Flamingos]
Group: [tvs:ballers] => [S01E02_480p_KILLERS.mp4, S01E07_480p_BATV.mp4, S01E09_480p_BATV.mp4, S01E10_480p_BATV.mp4]
Rename episodes using [TheTVDB]
Auto-detected query: [Ballers]
Fetching episode data for [Ballers]
[TEST] From [/home/files/series/ballers/S01E02_480p_KILLERS.mp4] to [/home/files/series/ballers/_S01E02_480p_KILLERS.mp4]
[TEST] From [/home/files/series/ballers/S01E07_480p_BATV.mp4] to [/home/files/series/ballers/_S01E07_480p_BATV.mp4]
[TEST] From [/home/files/series/ballers/S01E09_480p_BATV.mp4] to [/home/files/series/ballers/_S01E09_480p_BATV.mp4]
[TEST] From [/home/files/series/ballers/S01E10_480p_BATV.mp4] to [/home/files/series/ballers/_S01E10_480p_BATV.mp4]
System info

FileBot 4.7.9 (r4984) / Java(TM) SE Runtime Environment 1.8.0_121 / Linux 3.14.32-xxxx-grs-ipv6-64 (amd64)


Any suggestions?
User avatar
rednoah
The Source
Posts: 22998
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: How to get IMDB id for TV Shows

Post by rednoah »

1.
{imdbid} is only available for (most but not all) Movie objects, but not for Episode objects. I recommend using TheMovieDB ID for movies and TheTVDB ID for TV shows. Both of these can be accessed via the {id} binding.


2.
I recommend using the Format Editor to prototype formats. Prototyping custom formats on the command-line is not smart. ;)
:idea: Please read the FAQ and How to Request Help.
Post Reply