Page 1 of 1

Imdb TV Series ID

Posted: 12 May 2021, 15:43
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)

Re: Imdb TV Series ID

Posted: 12 May 2021, 15:50
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)}