Imdb TV Series ID

Support for Windows users
Post Reply
jerome
Posts: 31
Joined: 25 Feb 2019, 02:21

Imdb TV Series ID

Post by jerome »

Using the GUI interface with the following format expression {omdb.imdbid} to retrieve the imdb tv series id.

As an example, for Dekalog, {omdb.imdbid} returns 92337 as the result.
However, using a JSON Title lookup on https://www.omdbapi.com/ yields "imdbID":"tt0092337".

If the format expression {omdb} is a string should it not return "tt0092337" instead of "92337"?

Thanks
Jerome

Code: Select all

FileBot 4.9.3 (r8338)
JNA Native: 6.1.0
MediaInfo: 20.09
7-Zip-JBinding: 16.02
Tools: fpcalc/1.5.0
Extended Attributes: OK
Unicode Filesystem: OK
Script Bundle: 2021-02-22 (r738)
Groovy: 3.0.7
JRE: OpenJDK Runtime Environment 15.0.2
JVM: 64-bit OpenJDK 64-Bit Server VM
CPU/MEM: 12 Core / 4.8 GB Max Memory / 100 MB Used Memory
OS: Windows 10 (amd64)
STORAGE: NTFS [(C:)] @ 606 GB NTFS [DATA] @ 1.5 TB 
DATA: C:\Users\xxxx\AppData\Roaming\FileBot
Package: MSI
License: FileBot License xxxxxxxx (Valid-Until: 2022-01-17)
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Imdb TV Series ID

Post by rednoah »

The MovieInfo.imdbId property is a Number value, and not a String value.


You can format the ID as needed:

Code: Select all

{'tt'+omdb.imdbId.pad(7)}
:idea: Please read the FAQ and How to Request Help.
Post Reply