Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

extraction of imdb_id from title #622

Open
snickers2k opened this issue Oct 12, 2019 · 4 comments
Open

extraction of imdb_id from title #622

snickers2k opened this issue Oct 12, 2019 · 4 comments

Comments

@snickers2k
Copy link

snickers2k commented Oct 12, 2019

i use "flexget" to download stuff and automatically store the imdb_id in the filename.
Would be great to have guessit recognize those IDs for later sortings.
since imdb_ids always starts with "tt" this should be easy or not?!

tmdb/tvdb could be a little bit more difficult, but most naming-schemes i saw containing tmdb/imdb/tvdb, in "[ ]". So at least this could be extracted aswell?

besides flexget, sonarr/radarr and filebot are also able to store imdb_ids in title. so there are a couple of usecases.

to clarify;
i saw 1-2 requests for "searching the imdb_id from imdb.com",
but this is not what i mean. i would just like to have guessit extracting the ID, if there is one in the title.

thank you

@Toilal
Copy link
Member

Toilal commented Oct 16, 2019

Please provide a list of release names with those ids.

@snickers2k
Copy link
Author

snickers2k commented Oct 17, 2019

sorry, there are no release-names with ids.
but flexget/sonarr/radarr for example are able to rename the title with imdb_ids in it, directly while creating them - because they run lookups before.
so this would be the usecase. already renamed files by other apps - for later recognition, would be helpful if guessit could parse those ids back to other apps. you get it?^^

@pawamoy
Copy link

pawamoy commented Oct 27, 2019

So a regex for this would be \[tt[0-9]{8}\] if IMDB IDs always have 8 digits.

@labrys
Copy link
Contributor

labrys commented Jun 13, 2020

Personally I think there are way too many naming formats across various apps to expect guessit to unparse them. If you already have a known format its much better to have a parser for that specific format and handle it directly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants