[mythtv-users] mythtv plex integration

Khanh Tran khanh at khanh.net
Thu Nov 13 21:10:05 UTC 2014


On Thu, Nov 13, 2014 at 3:56 PM, Phill Edwards <philledwards at gmail.com>
wrote:

>
> Have you tried copying a recording and renaming it to something that
> should work, and seeing if Plex indexes that? At least that would rule out
> the symlink piece.
> >
> Yes, I've created a new folder and copied recordings to it and they showed
> up in Plex. So I'm pretty sure it's a problem with links.
>
> _______________________________________________
> mythtv-users mailing list
> mythtv-users at mythtv.org
> http://lists.mythtv.org/mailman/listinfo/mythtv-users
> http://wiki.mythtv.org/Mailing_List_etiquette
> MythTV Forums: https://forum.mythtv.org
>
>
I'm just reading the tail end of this thread, but I use mythlink.pl (with
symlinks) to make my recordings available to Plex.  It wasn't readily clear
if you were serving Plex from Linux or Windows, but in the Samba config for
your Linux share you'll need to add options to allow the share to follow
symlinks, and if the link destination is on a different filesystem than
your share, you'll need to add an option for that too.

For example, I call mythlink.sh as:
/usr/local/bin/mythlink.pl --link /mnt/plex-tv --format %U/%T/%T\ -\
%oY-%om-%od\ -\ %S

Which makes my recordings from /mnt/video and /mnt/video2 appear in
/mnt/plex-tv.  Files are dated with their original air time and episode
name:

khanh at tv:/mnt/plex-tv/Default/Modern Family$ ll
total 8
drwxrwxr-x  2 khanh khanh 4096 Nov 13 16:01 ./
drwxrwxr-x 66 khanh khanh 4096 Nov 13 16:01 ../
lrwxrwxrwx  1 khanh khanh   45 Nov 13 16:01 Modern Family - 2014-04-02 - A
Hard Jay's Night.mpg -> /mnt/video2/recording/1707_20140904020000.mpg
lrwxrwxrwx  1 khanh khanh   45 Nov 13 16:01 Modern Family - 2014-04-23 -
Australia.mpg -> /mnt/video2/recording/1707_20140904023000.mpg
lrwxrwxrwx  1 khanh khanh   45 Nov 13 16:01 Modern Family - 2014-04-30 -
Sleeper.mpg -> /mnt/video2/recording/1707_20140911010000.mpg
lrwxrwxrwx  1 khanh khanh   45 Nov 13 16:01 Modern Family - 2014-05-07 -
Message Received.mpg -> /mnt/video2/recording/1707_20140911013100.mpg
lrwxrwxrwx  1 khanh khanh   45 Nov 13 16:01 Modern Family - 2014-05-14 -
The Wedding, Part 1.mpg -> /mnt/video2/recording/1707_20140918010000.mpg
lrwxrwxrwx  1 khanh khanh   44 Nov 13 16:01 Modern Family - 2014-09-24 -
The Long Honeymoon.mpg -> /mnt/video/recording/1707_20140925010000.mpg
lrwxrwxrwx  1 khanh khanh   45 Nov 13 16:01 Modern Family - 2014-10-01 - Do
Not Push.mpg -> /mnt/video2/recording/1707_20141002010000.mpg
lrwxrwxrwx  1 khanh khanh   44 Nov 13 16:01 Modern Family - 2014-10-08 -
The Cold.mpg -> /mnt/video/recording/1707_20141009010000.mpg
lrwxrwxrwx  1 khanh khanh   44 Nov 13 16:01 Modern Family - 2014-10-15 -
Marco Polo.mpg -> /mnt/video/recording/1707_20141016010000.mpg
lrwxrwxrwx  1 khanh khanh   45 Nov 13 16:01 Modern Family - 2014-10-22 -
Won't You Be Our Neighbor.mpg ->
/mnt/video2/recording/1707_20141023010000.mpg
lrwxrwxrwx  1 khanh khanh   45 Nov 13 16:01 Modern Family - 2014-10-29 -
Halloween 3- AwesomeLand.mpg ->
/mnt/video2/recording/1707_20141030010000.mpg
lrwxrwxrwx  1 khanh khanh   44 Nov 13 16:01 Modern Family - 2014-11-12 -
Queer Eyes, Full Hearts.mpg -> /mnt/video/recording/1707_20141113020000.mpg

Then in /etc/samba/smb.conf, make sure to "follow symlinks" and "wide
links":

[plex-tv]
        path = /mnt/plex-tv
        read only = Yes
        guest ok = yes
        follow symlinks = yes
        wide links = yes

I run Plex on my mythbackend, but I've also run Plex from Windows and Mac
over the Samba share.  You'll also want to make a cron job out of your
mythlink script to run say on the :01 and the :31 minutes so that your
recordings just after they complete.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mythtv.org/pipermail/mythtv-users/attachments/20141113/625cf0aa/attachment.html>


More information about the mythtv-users mailing list