Mailing List Archive

Mythtv, Plex, and watched status
Hello All,


In my household, we primarily watch TV using Mythtv on the big screen
and plex on the phones and tablets.

One of the pain points is knowing what shows have already been watched
on one platform and those that have not.

Is there anything that can manage the watched status in mythv and keep
it in sync with plex or vice versa?

I found something called trakt that some are using with Plex, Kodi, etc,
but I don't see any mention of support for mythtv.    I also don't
really need to send my viewing data to an external party.

I would be happy if there was a script that could read from the mythtv
database and push watched status to plex or vice versa.

Has anyone tackled this problem?

Michael



_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-users
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: Mythtv, Plex, and watched status [ In reply to ]
I solved this (and a ton of other issues) by simply stopping using mythfrontend all together. Instead I have:

mythbackend - liveTV, recording/scheduling. I record cable and do IPTV for some European channels as well.

plex media server - being fed content from Mythbackend via myth2kodi which gets called as a user job after recording ends. Commercial skipping is not passed along in a way that works, but that was so badly broken in myth that it was a nuance anyways. Occasionally myth2kodi needs a little massaging because of the lack of decent data in the myth database about a recording but it works a solid 9/10. I also have other sources automatically feeding things into plex.

Kodi frontends - I use the plexkodiconnect addon to play all my plex content instead of local libraries, which handles all the library/watched status syncs between devices and plex itself. It also lets me organize everything so that I have separate menu items/libraries for TV shows/Movies/Kids TV/Kids Movies/Exercise videos for the wife etc. I have the mythpvr addon for liveTV and any recordings that didn't get moved via myth2kodi or are still recording, which syncs watched status with the myth side. I have a heavily customized skin that makes it all seemless.

Hardware I have a server running mythbackend/plex and a bunch of other stuff off in a utility room where it can't be heard of played with by kids. Frontends I ditched my expensive/noisy/power hungry HTPC's I was previously running Mythfrontend on and switched Nvidia Shields (android TV) connected to my TV's. They are awesome in every way possible. In addition to kodi (in 4K /w HDR) I can access all the streaming sites now too: Netflix, Amazon Prime, Youtube, Youtube kids, Hulu, HBO Go, Showtime, PBS, all the broadcast/cable ones etc... The whole thing can be controlled via voice commands, Alexia or Google (although Google won't work in kodi until 18). I also run Kodi on my android tablets/phone, which works from anywhere (minus the mythtv part) as it's tied in to plex. Apple iPads I have the Plex app only because that's a crap platform that doesn't allow open source.

Overall I'm super happy with this setup. I've won my sceptical wife over, and my 3 year old as figured it out on her own (ok google, turn on the TV etc), including own to chromecast to my TV's from her iPad. It's been way more trouble free than mythfrontend/HTPC's. It was a ton of effort to set it all up and customize it to my liking, kodi in particular, but well worth the end result.

----- Original Message -----
From: "Michael" <mythtv@blandford.net>
To: "mythtv users" <mythtv-users@mythtv.org>
Sent: Thursday, March 29, 2018 12:14:59 PM
Subject: [mythtv-users] Mythtv, Plex, and watched status

Hello All,


In my household, we primarily watch TV using Mythtv on the big screen
and plex on the phones and tablets.

One of the pain points is knowing what shows have already been watched
on one platform and those that have not.

Is there anything that can manage the watched status in mythv and keep
it in sync with plex or vice versa?

I found something called trakt that some are using with Plex, Kodi, etc,
but I don't see any mention of support for mythtv.    I also don't
really need to send my viewing data to an external party.

I would be happy if there was a script that could read from the mythtv
database and push watched status to plex or vice versa.

Has anyone tackled this problem?

Michael



_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-users
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-users
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: Mythtv, Plex, and watched status [ In reply to ]
On Thu, Mar 29, 2018 at 1:51 PM, Matt Goebel <matt@goebelnet.com> wrote:

> I solved this (and a ton of other issues) by simply stopping using
> mythfrontend all together. Instead I have:
>
> mythbackend - liveTV, recording/scheduling. I record cable and do IPTV
> for some European channels as well.
>
> plex media server - being fed content from Mythbackend via myth2kodi which
> gets called as a user job after recording ends. Commercial skipping is not
> passed along in a way that works, but that was so badly broken in myth that
> it was a nuance anyways. Occasionally myth2kodi needs a little massaging
> because of the lack of decent data in the myth database about a recording
> but it works a solid 9/10. I also have other sources automatically feeding
> things into plex.
>
> Kodi frontends - I use the plexkodiconnect addon to play all my plex
> content instead of local libraries, which handles all the library/watched
> status syncs between devices and plex itself. It also lets me organize
> everything so that I have separate menu items/libraries for TV
> shows/Movies/Kids TV/Kids Movies/Exercise videos for the wife etc. I have
> the mythpvr addon for liveTV and any recordings that didn't get moved via
> myth2kodi or are still recording, which syncs watched status with the myth
> side. I have a heavily customized skin that makes it all seemless.
>
> Hardware I have a server running mythbackend/plex and a bunch of other
> stuff off in a utility room where it can't be heard of played with by
> kids. Frontends I ditched my expensive/noisy/power hungry HTPC's I was
> previously running Mythfrontend on and switched Nvidia Shields (android TV)
> connected to my TV's. They are awesome in every way possible. In addition
> to kodi (in 4K /w HDR) I can access all the streaming sites now too:
> Netflix, Amazon Prime, Youtube, Youtube kids, Hulu, HBO Go, Showtime, PBS,
> all the broadcast/cable ones etc... The whole thing can be controlled via
> voice commands, Alexia or Google (although Google won't work in kodi until
> 18). I also run Kodi on my android tablets/phone, which works from
> anywhere (minus the mythtv part) as it's tied in to plex. Apple iPads I
> have the Plex app only because that's a crap platform that doesn't allow
> open source.
>
> Overall I'm super happy with this setup. I've won my sceptical wife over,
> and my 3 year old as figured it out on her own (ok google, turn on the TV
> etc), including own to chromecast to my TV's from her iPad. It's been way
> more trouble free than mythfrontend/HTPC's. It was a ton of effort to set
> it all up and customize it to my liking, kodi in particular, but well worth
> the end result.
>
> ----- Original Message -----
> From: "Michael" <mythtv@blandford.net>
> To: "mythtv users" <mythtv-users@mythtv.org>
> Sent: Thursday, March 29, 2018 12:14:59 PM
> Subject: [mythtv-users] Mythtv, Plex, and watched status
>
> Hello All,
>
>
> In my household, we primarily watch TV using Mythtv on the big screen
> and plex on the phones and tablets.
>
> One of the pain points is knowing what shows have already been watched
> on one platform and those that have not.
>
> Is there anything that can manage the watched status in mythv and keep
> it in sync with plex or vice versa?
>
> I found something called trakt that some are using with Plex, Kodi, etc,
> but I don't see any mention of support for mythtv. I also don't
> really need to send my viewing data to an external party.
>
> I would be happy if there was a script that could read from the mythtv
> database and push watched status to plex or vice versa.
>
> Has anyone tackled this problem?
>
> Michael
>
>
>
This is interesting as I'm kind of setup similar. A few months ago, I
bought a plex pass just because it's easier to watch the shows and have it
auto transcode when I'm away from home. I don't point Kodi at plex right
now, but I was wondering what the purpose of doing this. What will I gain
if I point kodi at plex instead of pointing Kodi at my NFS share?

In general, NFS works well but I run into permission issues when I use NFS
and Samba (on a Windows client) on my NAS on the same share. I'm thinking
that if I switch to Samba and let Plex handle passing the video to Kodi, it
might fix some issues. If it syncs watched status, it might be even
better. I'm also thinking about the future with my kids and if I want to
separate videos and how all that works.... So just asking some general
questions about your setup. :)

Thanks
Re: Mythtv, Plex, and watched status [ In reply to ]
I'm curious as well. I haven't looked at Kodi yet, I'm using the mythlink
script to format symbolic links in the format that Plex likes. The only
problem is that if I have incomplete show data mythlink doesn't handle it
well and Plex doesn't pick it up.

I currently use a systemd service file and timer I'll paste here for
posterity in case anyone else finds it useful.

# /etc/systemd/system/mythlink.service
[Unit]
Description=Update symbolic links of recordings for Plex
After=mythbackend.service
Requisite=mythbackend.service

[Service]
Type=simple
ExecStart=/usr/local/bin/mythlink --link /var/lib/plexmediaserver/mythtv
--format "%%T - s%%sse%ep"

# /etc/systemd/system/mythlink.timer
[Unit]
Description=Timer for the mythlink service

[Timer]
#OnCalendar=*-*-* 00:00:00
OnCalendar=daily
#OnUnitActiveSec=1d

[Install]
WantedBy=multi-user.target

Thanks,
Richard
Re: Mythtv, Plex, and watched status [ In reply to ]
On Wed, Apr 4, 2018 at 9:48 AM, Richard Shaw <hobbes1069@gmail.com> wrote:

> I'm curious as well. I haven't looked at Kodi yet, I'm using the mythlink
> script to format symbolic links in the format that Plex likes. The only
> problem is that if I have incomplete show data mythlink doesn't handle it
> well and Plex doesn't pick it up.
>
>
>
I'm still wondering if PKC (Plex Kodi Connect) is right for me. I'm
reading more of the documentation and it looks like there's more negatives
in my install than positives. For example, I have multiple set top boxes
that are configured to use MySQL in Kodi to sync the libraries across
everything. It sounds like this may be a no-go with PKC. I'm not exactly
sure yet, but I kind of think that there are a few settings Kodi uses in
MySQL to get a similar look and feel. I am still looking into this. The
other thing is I have a mixture of devices; one's an i5, one is a firetv,
and another is a walmart android tv box. PKC might work, but there's a
warning in their docs about using it on lower power devices.

I know this is a bit OT. But basically, my setup is Myth for my backend,
Plex for mobile devices, and Kodi for internal/in-house watching. While
everything works OK, there has to be a better, more uniform, and easier way
to get this done, as my kids are getting old enough to navigate the TV and
I want to make it crazy easy for them.
Re: Mythtv, Plex, and watched status [ In reply to ]
On Thu, Apr 5, 2018 at 7:56 AM, Michael Wisniewski <mikewiz38@gmail.com>
wrote:

> On Wed, Apr 4, 2018 at 9:48 AM, Richard Shaw <hobbes1069@gmail.com> wrote:
>
>> I'm curious as well. I haven't looked at Kodi yet, I'm using the mythlink
>> script to format symbolic links in the format that Plex likes. The only
>> problem is that if I have incomplete show data mythlink doesn't handle it
>> well and Plex doesn't pick it up.
>>
>>
> I'm still wondering if PKC (Plex Kodi Connect) is right for me. I'm
> reading more of the documentation and it looks like there's more negatives
> in my install than positives. For example, I have multiple set top boxes
> that are configured to use MySQL in Kodi to sync the libraries across
> everything. It sounds like this may be a no-go with PKC. I'm not exactly
> sure yet, but I kind of think that there are a few settings Kodi uses in
> MySQL to get a similar look and feel. I am still looking into this. The
> other thing is I have a mixture of devices; one's an i5, one is a firetv,
> and another is a walmart android tv box. PKC might work, but there's a
> warning in their docs about using it on lower power devices.
>

Other than not having complete metadata for every show I'm having zero
issues just running mythlink every 24 hours. I could increase the frequency
but we usually don't watch shows the same day the record anyway.

I considered running it after every show using the --chanid and
--starttime options, but they don't clean up shows that have been deleted
and it doesn't take that long to run and clean up everything.


I know this is a bit OT. But basically, my setup is Myth for my backend,
> Plex for mobile devices, and Kodi for internal/in-house watching. While
> everything works OK, there has to be a better, more uniform, and easier way
> to get this done, as my kids are getting old enough to navigate the TV and
> I want to make it crazy easy for them.
>

I've been using just MythTV for the last 10 years, but we intentionally
only had one TV in the house until last year when we bought one for our
bedroom. Since it's a TCL Roku TV we just use Plex to play our content and
other than waiting for the stream, or waiting for an on the fly recode of
the MPEG2 content, it works quite well. Doesn't have the nice skip speed
(restarts the stream) but works well enough.

Thanks,
Richard
Re: Mythtv, Plex, and watched status [ In reply to ]
On 06/04/18 12:47, Richard Shaw wrote:

> Other than not having complete metadata for every show I'm having zero
> issues just running mythlink every 24 hours. I could increase the
> frequency but we usually don't watch shows the same day the record anyway.
>
> I considered running it after every  show using the --chanid and
> --starttime options, but they don't clean up shows that have been
> deleted and it doesn't take that long to run and clean up everything.

I've been using this, pretty well since it was first posted.

=================
$cd /usr/share/doc/mythtv-docs-master/contrib/user_jobs/
[john@HP_Box user_jobs]$ diff -u mythlink.pl mythlink_KN2.pl
--- mythlink.pl 2018-03-26 04:07:39.000000000 +0100
+++ mythlink_KN2.pl 2017-04-27 14:49:56.770757949 +0100
@@ -2,6 +2,10 @@
#
# Creates symlinks to mythtv recordings using more-human-readable
filenames.
# See --help for instructions.
+## With patch by Karl Newman to skip deleted recordings
+##
http://www.mythtv.org/pipermail/mythtv-users/attachments/20131125/ab4f1992/attachment.obj
+## or
+## http://www.gossamer-threads.com/lists/mythtv/users/558623#558623
#
# Automatically detects database settings from mysql.txt, and loads
# the mythtv recording directory from the database (code from nuvexport).
@@ -350,6 +354,8 @@
}
foreach my $row (@{$rows{'rows'}}) {
my $show = new MythTV::Recording(@$row);
+ # Skip deleted recordings
+ next unless ($show->{'recgroup'} ne 'Deleted');
# Skip LiveTV recordings?
next unless (defined($live) || $show->{'recgroup'} ne 'LiveTV');
# File doesn't exist locally
=============
_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-users
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: Mythtv, Plex, and watched status [ In reply to ]
On Fri, Apr 6, 2018 at 7:22 AM, John Pilkington <J.Pilk@tesco.net> wrote:

> On 06/04/18 12:47, Richard Shaw wrote:
>
> Other than not having complete metadata for every show I'm having zero
>> issues just running mythlink every 24 hours. I could increase the frequency
>> but we usually don't watch shows the same day the record anyway.
>>
>> I considered running it after every show using the --chanid and
>> --starttime options, but they don't clean up shows that have been deleted
>> and it doesn't take that long to run and clean up everything.
>>
>
> I've been using this, pretty well since it was first posted.


I haven't noticed an issue with creating symlinks for deleted content, just
that if you specify --chanid and --starttime it only creates a new symlink
for that recording, it doesn't clean up symlinks for recordings that have
been deleted since the last time mythlink ran.

Thanks,
Richard
Re: Mythtv, Plex, and watched status [ In reply to ]
Plexkodiconnect (PKC) can't be used with MySQL sync but that's not an issue because you no longer need it at all. Using MySQL and Samba/NFS to keep a bunch Kodi frontends in sync is a complete hack that doesn't work remotely anyways. With Plex, which gets that right, you don't have to do any of that, it does direct connect if it can over a local network and transcoding if it can't (remote access only really) so it works in a similar way to storage groups in mythfrontend but with the ability to access it remotely as well. When something gets dropped into a directory Plex monitors it picks it up immediately, grabs the meta data and adds it to the correct library. My Kodi frontends all pick that up nearly instantly as well, and all the meta data (art etc) comes from Plex as does the watched status. If I watch something in kodi I can pick up where I left off on another Kodi frontend/Plex apps, or a browser from anywhere. You can sync your music and photos with Plex and PKC too, I don't do that because I'm not using it for those functions.

Kodi makes for a better frontend than Plex directly (although you can can use both if you want) because it can also connect to Mythbackend for livetv/recordings. Plex can record from an HDhomerun prime (only) if you buy premium where MythTV can record basically anything. Kodi can WAY more options when it comes to customizations... it's not even close, and a ton more addons/functionality. You can also use Kodi with PKC on an Android device which avoids having to pay for the Andoid Plex app which isn't free. Keeping my Kodi frontend addons/configuration in sync (PKC hands all the content in Plex but not that) I've achieved by simply setting up one frontend the way I wanted, when backing it up using the backup addon and restoring it on new frontends. I haven't had to make any changes since getting to where I wanted it.

Mythlink is a terrible outdated mess. It just creates a link with whatever meta data MythTV has and that's it. Myth2kodi is light years better. When MythTV doesn't have proper media data about season/episode etc, which is quite often, it uses the description/recording time and channel etc to look it up online to figure that out. It also gives you a lot more options on how to move/link/name recordings. I have recording groups setup in MythTV so certain shows ( and movies) can automatically get added to different libraries in Plex (Kids TV shows vs Adult etc). It's not perfect but it works pretty well. Sometimes I have to fire up a Mythfrontend to alter meta data slightly for a recording and re-run the myth2kodi job, but that's rare.



From: "Richard Shaw" < [ mailto:hobbes1069@gmail.com | hobbes1069@gmail.com ] >
To: "mythtv users" < [ mailto:mythtv-users@mythtv.org | mythtv-users@mythtv.org ] >
Sent: Friday, April 6, 2018 8:28:25 AM
Subject: Re: [mythtv-users] Mythtv, Plex, and watched status

On Fri, Apr 6, 2018 at 7:22 AM, John Pilkington < [ mailto:J.Pilk@tesco.net | J.Pilk@tesco.net ] > wrote:


On 06/04/18 12:47, Richard Shaw wrote:


BQ_BEGIN
Other than not having complete metadata for every show I'm having zero issues just running mythlink every 24 hours. I could increase the frequency but we usually don't watch shows the same day the record anyway.

I considered running it after every show using the --chanid and --starttime options, but they don't clean up shows that have been deleted and it doesn't take that long to run and clean up everything.



I've been using this, pretty well since it was first posted.
BQ_END

I haven't noticed an issue with creating symlinks for deleted content, just that if you specify --chanid and --starttime it only creates a new symlink for that recording, it doesn't clean up symlinks for recordings that have been deleted since the last time mythlink ran.

Thanks,
Richard

_______________________________________________
mythtv-users mailing list
[ mailto:mythtv-users@mythtv.org | mythtv-users@mythtv.org ]
[ http://lists.mythtv.org/mailman/listinfo/mythtv-users | http://lists.mythtv.org/mailman/listinfo/mythtv-users ]
[ http://wiki.mythtv.org/Mailing_List_etiquette | http://wiki.mythtv.org/Mailing_List_etiquette ]
MythTV Forums: [ https://forum.mythtv.org/ | https://forum.mythtv.org ]