Episode Title from Filename?

Hi,



I am working on a Media Agent plugin for TV Shows and everything is working fine so far, but… for some of my TV Shows there are no episode titles available online, but the contain the title in their filename:



Like this:

“My TV Show - S03E11 - The Episode Title.mkv”



Is there any way to get the filename of the episode inside of the update() method of Agent.TV_Shows?



Thanks,

Ari

anyone?

You'll probably have better luck asking in the subforum for Metadata Agent development. I'll move this topic there.

After grapping the ratingkey, go here:

http://127.0.0.1:32400/library/metadata/

That's an XML file, that has a movie/part entry, with the filename in it.

In my signature, you'll find a link to RemIdx, a currently stalled agent, that graps the Rating-Key

In my signature, you'll find a link to Plex2CSV, that has code to grap the filename

Both are hosted on GitHub

Best Regards, and good luck

Tommy

http://dev.plexapp.com/docs/agents/models.html "metadata" doesn't

http://dev.plexapp.com/docs/api/objectkit.html#media-objects doesn't

http://dev.plexapp.com/docs/agents/search.html DOES

you have

   . filename ( media.filename.Unquote() )

   . movies: media.items[0].parts[0]

   . series: media.seasons[1].episodes[1].items[0].parts[0]. thetvdb is the best i can find and i just update it (it's easy) when something is missing.

I think my agent (HAMA) is a good read for the source code [https://github.com/ZeroQI/Hama.bundle/blob/master/Contents/Code/__init__.py] and use an offline database file for titles, manage kanjis, etc...

Filename: %2FvolumeSATA2%2Fsatashare2-1%2FAnime%2FJap%20Sub%20En%2F_Jap%20test%20serie%2FGundam%20Evolve%2Fep%2002%2Emkv

Filename after unquote: /volumeSATA2/satashare2-1/Anime/■■■ Sub En/_Jap test serie/Gundam Evolve/ep 02.mkv

Results for those that originally opened this thread?

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.