Help getting an episodeID from a tv show file

A place for developers to advertise their TheTVDB.com enabled app and get help from other developers with the API.
luckdelli
Posts: 1
Joined: Sat Jan 26, 2019 10:14 pm

Help getting an episodeID from a tv show file

Postby luckdelli » Sat Jan 26, 2019 10:19 pm

How can I get the ID of an episode if I only have the video file with none metadata whatsoever? I've seen that there are some apps that do this but i can't figure out how they do it.

Thanks

badassrockett
Posts: 5
Joined: Sun Dec 16, 2018 1:01 pm

Re: Help getting an episodeID from a tv show file

Postby badassrockett » Fri Feb 15, 2019 7:08 pm

What info do you have? When you say episode ID do you mean the episode ID from the database via the API or do you just mean Series X, Season Y Episode Z for example?

mackworth
Posts: 30
Joined: Sun Jun 02, 2013 8:36 pm

Re: Help getting an episodeID from a tv show file

Postby mackworth » Wed Mar 13, 2019 1:22 pm

If you just have pure video, you can't get the metadata needed to find the episode. On the other hand, sometimes you can get enough metadata just from the name of the file, and certain formats (e.g. MP4) can have metadata embedded within, so you can use a video library (e.g. mp4v2https://github.com/TechSmith/mp4v2) to extract that information.