Myth and plex

For discussion of topics specific to MythTV on linux
DarkLogix
Junior
Posts: 19
Joined: Sun Jan 18, 2015 1:37 am
United States of America

Re: Myth and plex

Post by DarkLogix »

As the centOS support seems very lacking for Myth I guess I'll try mythbuntu
though I notice the download they have is for Ubuntu desktop and has "all" myth components but I want a lightweight one that only has whats needed.
User avatar
stuarta
Developer
Posts: 220
Joined: Wed Feb 05, 2014 5:13 pm
Great Britain

Re: Myth and plex

Post by stuarta »

I don't believe you will find any pre built packages for Centos. Having said that, if you are prepared to build from source, it will build and run fine. Please use Centos 7 as a minimum though. Let me know if you need any help with this.
DarkLogix
Junior
Posts: 19
Joined: Sun Jan 18, 2015 1:37 am
United States of America

Re: Myth and plex

Post by DarkLogix »

If you'd be willing to help walk me through it then then I would be willing to build from source though when MythTV makes an update how hard will it be to update when it's been built from source?

For the moment I booted up a mythbuntu VM to see how well it'll work, I'm waiting for a show to come on tonight to see if I can get the file from mythTV to Plex (I understand I should be able to but I'm unsure of getting it done.)

I would certainty prefer to be using CentOS 7
DarkLogix
Junior
Posts: 19
Joined: Sun Jan 18, 2015 1:37 am
United States of America

Re: Myth and plex

Post by DarkLogix »

And now that the test one has something downloaded I tried watching it and just get a 404 when I try downloading it.
User avatar
bill6502
Developer
Posts: 2325
Joined: Fri Feb 07, 2014 5:28 pm
United States of America

Re: Myth and plex

Post by bill6502 »

Remember that folks here are mostly MythTV users, so to resolve the
404 error, you can help by explaining what is actually being done. E.g
is the remote box trying to ftp the file? Once you know who/what is
trying to get the file you should be able to execute the command using
tools like wget or curl.
DarkLogix
Junior
Posts: 19
Joined: Sun Jan 18, 2015 1:37 am
United States of America

Re: Myth and plex

Post by DarkLogix »

I browsed to the mythbackend server and to the recording page and clicked "direct download"
User avatar
bill6502
Developer
Posts: 2325
Joined: Fri Feb 07, 2014 5:28 pm
United States of America

Re: Myth and plex

Post by bill6502 »

Ah, probably using mythweb and clicking "Direct Download". The mythbackend
based webserver is available in 0.28-pre. It's likely that mythweb will go away
someday.

I <assumed> that you'd used a User Job as discussed earlier to copy a file to
your other box. Which still sounds like a good idea.
DarkLogix
Junior
Posts: 19
Joined: Sun Jan 18, 2015 1:37 am
United States of America

Re: Myth and plex

Post by DarkLogix »

I want to get a userjob going but first I want to verify that it's functioning

At the moment it doesn't seem to be so I figure that needs to be solved before implementing a userjob.
User avatar
bill6502
Developer
Posts: 2325
Joined: Fri Feb 07, 2014 5:28 pm
United States of America

Re: Myth and plex

Post by bill6502 »

I'd try to get the User Jobs running before mythweb. In mythtv-setup
was the job allowed, added (like: /home/you/bin/somejob.py %YOUROPTIONHERE%...)
and optionally described? In the recording rule, was the user job
selected. Try mythbackend --setverbose system,jobqueue and watch
the log.
DarkLogix
Junior
Posts: 19
Joined: Sun Jan 18, 2015 1:37 am
United States of America

Re: Myth and plex

Post by DarkLogix »

can you give me what the command will be?

on the mythbuntu test vm the spot for userjobs only had 4 slots

I want it to after a show id done to copy it to a windows file share and to ensure the name is name.of.show.S (season number)E(episode Number).extension.
User avatar
bill6502
Developer
Posts: 2325
Joined: Fri Feb 07, 2014 5:28 pm
United States of America

Re: Myth and plex

Post by bill6502 »

Look here: http://pastebin.com/Xdy6prct

The comments tell you what to do. However, your idea of adding S#E# will
fail for shows that don't have metadata because the season and episode
will be 0. For example news programs. The above will just keep copying
files on top of each other. But that should give you a start. You get to
figure out how to add the .extension to the path.

Read ALL of the comments!
DarkLogix
Junior
Posts: 19
Joined: Sun Jan 18, 2015 1:37 am
United States of America

Re: Myth and plex

Post by DarkLogix »

Well I don't plan to record non-episode based shows.
yajrendrag
Junior
Posts: 16
Joined: Sun May 03, 2015 12:38 am
United States of America

Re: Myth and plex

Post by yajrendrag »

I've been using this for years: http://kodi.wiki/view/MythicalLibrarian

it was written as a utility for Kodi - formerly xbmc - but it's completely separate from Kodi. Exact same use case though - moving & renaming files to be recognized by Kodi. Works great with plex.

It does what you want in that it takes your myth recordings and moves them and and then symlinks (some other options too) them back to the myth directory. it does a lookup on them using a variety of tools (thetvdb, fuzzy logic, and other things) and names them appropriately so plex will correctly identify the file. runs as a user job in myth. I do the same thing you want to do - i move them to another machine or server and that directory is added to plex.

It's not maintained any longer, but i've not had any trouble except matching shows that have non-English characters in the titles.

i used the automated install (section 1.1.1) on Linux instructions (not myth). During install, just select that most recent myth option - the program was last modified circa myth 0.25, but works fine with 0.27.
DarkLogix
Junior
Posts: 19
Joined: Sun Jan 18, 2015 1:37 am
United States of America

Re: Myth and plex

Post by DarkLogix »

Cool thanks
I don't really need the symlinks back to myth but the rest sounds good.
User avatar
bill6502
Developer
Posts: 2325
Joined: Fri Feb 07, 2014 5:28 pm
United States of America

Re: Myth and plex

Post by bill6502 »

The script I submitted on 4/28 will handle UTF-8 characters.
Did you have trouble using it?
Post Reply