EpisodeObject url point to file

Hi,

 

I am trying to create a channel that is fed from my ArgusTV recordings SQL server. I can already show the recordings in the channel, but are now facing a problem how to link the content.

 

The data is stored on a NAS available as an UNC share to Plex MS. The filenames are UNC paths like "\ as\Recording\bla.ts". When I provide the UNC path to EpisodeObject as url, it barks with 

 

2014-08-25 17:46:09,161 (7f8bfaffd700) :  DEBUG (services:602) - No service found for URL '\\stuff\Public\Shared Videos\Aufnahmen\Goodbye Deutschland! Die Auswanderer\Goodbye Deutschland! Die Auswanderer_VOX_2014-08-24_13-20.ts'
2014-08-25 17:46:09,162 (7f8bfaffd700) :  DEBUG (services:617) - No matching services found for '\\stuff\Public\Shared Videos\Aufnahmen\Goodbye Deutschland! Die Auswanderer\Goodbye Deutschland! Die Auswanderer_VOX_2014-08-24_13-20.ts'
2014-08-25 17:46:09,163 (7f8bfaffd700) :  DEBUG (services:41) - Loading service code for Fallback (URLServiceRecord)
Any idea how I can cook that into something Plex will eat?

 

Is there a way to feed a UNC path into MediaObject/PartObject as source?

 

dero

There is not currently support for passing file paths via PMS to client apps (with or without transcoding).

After I figured it out, it's quite easy. 

eo = EpisodeObject(title=title, summary=summary, show=show, key=Callback(CreateRecording, recording_id=recording_id, container=True),
  rating_key=recording_id,
  items=[MediaObject(parts=[PartObject(key=recording_id, file=file)])])

Here, file is the UNC filename. See https://github.com/derolf/Plex.ArgusTV.bundle/blob/master/Contents/Code/__init__.py

My ArgusTV channel plugin is now up and running: https://forums.plex.tv/topic/119278-rel-argustv-recordings-as-channel-plugin/

dero

So, I found a problem with "German Umlauts". The  transcoder fails with "Invalid data found when processing input".

The Umlauts are correctly encoded as UTF-8 in the XML-Files received from the channel services, but it looks like the PlexNewTranscoder tool is not converting the UTF-8 umlauts in the XML to Windows paths in the right way. When I provide the filename directly to PlexNewTranscoder, it succeeds.

Any idea?

dero