PseudeoTV-Plex - Create LiveTV channels from your Plex playlists

I am noticing that the DVR Pseudotv is listed in my authorized devices (settings\authorized devices) but even when I remove it and try again it doesn’t come back unless I add it through the web portal for pseudo at http://127.0.0.1:8000 … and even when I do that it still wont let me see its added or scan channels through Live TV & DVR setting. I did find something that was interesting in the plex-servers.json file. The token for my server is incorrect. Tried manually adding it to that file but it didn’t seem to make much difference in getting the DVR added. Maybe that will help someone (or Dan) to see if we are missing a step during our setup and config.

I actually found the solution:

  1. You need to port forward the port from the computer you’re using to host the channels
  2. When you enter the address of the “tuner”, enter just the IP address and then the ports; I was copying the URL from my browser, which included “http://” and other jazz.

I’m still having an issue with the XMLTV guide though, I think the XML file might have some errors, because it says “Unknown status” when I try to upload the XML file. I’m still investigating this and will post an update when I find a solution.

Excellent notanewbie but where are you setting port forwarding at, your router? or somewhere else?

My log files from webtools keep showing it “died” … not sure if thats involved in the need for port forwarding but it seems like Plex has an old version of it stuck somewhere… shrug - see log info below

#12556 May 03, 2020 12:14:17.146 [5796] DEBUG - DVR:Device: Testing grabber HDHomerun device device://tv.plex.grabbers.hdhomerun/PseudoTV at http://192.168.0.101:8000
#12557 May 03, 2020 12:14:17.146 [5796] DEBUG - DVR:Device: Device device://tv.plex.grabbers.hdhomerun/PseudoTV was already known, refreshing database info
#12558 May 03, 2020 12:14:17.147 [5796] DEBUG - DVR:Device: Device device://tv.plex.grabbers.hdhomerun/2f70c0d7-90a3-4429-8275-cbeeee9cd605 died
#12559 May 03, 2020 12:14:17.148 [5796] DEBUG - DVR:Device: Device device://tv.plex.grabbers.hdhomerun/PseudoTV died

I set the port forwarding through my router.

I came across something similar (it would crash but I couldn’t find the crash logs), and when I checked, it would always be because something messed up with the scheduling; when I’d restart it and check the schedule, the times and dates for all episodes beyond a certain point would be blank and say they were invalid.

I’d also like to add that the XMLTV error I was witnessing on PLEX was likely due to adding too many episodes to the channels. What the limit is, IDK, but right now I only have content going about 48 hours into the future, and PLEX now reads the EPG info just fine.

Did some tinkering, apparently PsuedoTV will only be able to write the XMLTV file if the schedule lasts shorter than a full week. You can check to see if it worked properly by clicking into the channel after updating it, and seeing if it says “Invalid date” next to any of the titles later on.

I would like to see this extended, as it could cause the “channel” to get a little bit stale over time.

Sorry I haven’t been more active fellas, just dealing with work and personal junk…

As for the issue with the dvr setup and everything… Are you guys specifying your host address when running the executable?

So say your plex server is at 192.168.1.100
and your running pseudotv on 192.168.1.101…

you’d start the executable like so: ./PseudoTV.exe -h 192.168.1.101

You can verify your host is setup correctly by first creating at least one channel, and then go to http://192.168.1.101:8000/api/channels.m3u, and verify the URL’s in the M3U are not ‘127.0.0.1’…

If you run pseudotv on the same machine as your plex server your shouldn’t need to set the -h option…

Regarding the date errors when building a large channel… Are you running the latest build? I recently (few days ago) fixed a bug where invalid items in Plex (items that didn’t have a duration set for some reason) could be added to a channel resulting in timeline errors… Obviously psuedotv needs the programs duration to calculate start and stop times and any other time logic, so now any items without a duration wont even show up to be added…
I just tried breaking the app by mashing the plus button on multiple tv series and surprisingly I had a channel with over a month and a half of content and no date errors. Hopefully you are running an older build lol. Let me me know!

1 Like

Interesting note of the IP address point. I’m just using port forward to forward the 8000 port out of the network, and I think the IP address is specific to the computer I’m running it on.

Yeah I had been using the G build, not the H build. I’m glad you pointed that out, as the H build fixed a lot of issues, esp. when it comes to PsuedoTV’s interactions with PLEX as a Live TV DVR. It also fixed up the problem with bigger channels too, which I was happy to see. Thanks for your work on this!

One thing I was wondering, is there a way to transport channels from an older build to a newer one? I started my channels over from scratch when I upgraded it.

I’ve tried to get this up and running on my Mac but no success. Any set of instructions that work for Mac? I tried the ones on the gitlab and it wouldn’t run.

3 Likes

ditto. I’d like to fire this up on a Mac setup as well.

1 Like

Hello,

Would you be able to push this to Dockerhub so I can easily install it onto my UnRAID server? Thank you!

2 Likes

I forked and pushed it here.

@DEFENDORe, I would love to help set up continuous integration for you so your latest builds automatically get built to dockerhub and I don’t have to manually merge your changes to my repo. Let me know if this is something you’re interested in!

1 Like

I am trying to get this working using windows but having no success.

I have downloaded the windows executable and ran the .exe but when I try to browse to localhost:8080 nothing happens.

Am I missing something, are there more setup steps.

Does this support using a collection as the source for content for the channel?

i have it running in a docker container alongside my plex docker container, but it won’t play anything for longer than a few seconds without buffering (and will then eventually crash the docker container). any ideas how to resolve?

1 Like

This is one I used to use in the past, and while it worked really well, it required a host device and a client device, which for me ended up being a rpi0w for host and rpi3b for client.

It worked well, and had some features that I’m not sure if you have with yours:

Could add advertisements, music videos and movie trailers to break up the shows.

It would allow for sequential episode viewing. For example, I could have Scrubs S01E01 play at 6am, then Parks and Rec S01E01 at 6:30am, then scrubs S01E01 at 7am. Thus even went over different days.

You are also able to write your schedule based on collections, genres and across libraries too. So a comedy channel could have both movies and tv shows, and the movies can be selected based on rating, actor, year etc.

Not sure if these are at all possible in your project, but maybe worth having a chat to the guys for the above and maybe working together towards an awesome solution!

1 Like

This is great, thanks. I’d be happy to test it on my Synolody DS918+. However, your container description is empty. In terms of the run command, am I right in assuming these changes are necessary?

Going from:
docker run --name pseudotv -p 8000:8000 -v C:\.pseudotv:/home/node/app/.pseudotv pseudotv

To:
docker run \ --name pseudotv \ -p 8000:8000 \ -v /path/to/config:/config \ --restart unless-stopped

Would I need to add PGID and PUID?

Ah yes I should add some documentation, but I’m hoping I just merge my CI code into the master repo.

I ran it on Unraid, so here are the options I changed for that.

I think you’re fine except the container config path is /home/node/app/.pseudotv

1 Like

I recognise your post from the other day on reddit, thanks for taking the time to write it out.

In that case, I’ll set the path as /docker/config/pseudotv:/home/node/app/.pseudotv.

1 Like

To really get it running properly, set it up like @DEFENDORe mentioned earlier in the thread (PseudeoTV-Plex - Create LiveTV channels from your Plex playlists)

I personally made a .bat file to do this automatically, this is the code (of course, replace the IP address with your own):

cd C:\Users\notanewbie\Documents\PseudoTV\0.0.4h-20200505T012441Z-001\0.0.4h
start /min pseudotv-win-x64.exe -h XXX.XXX.X.XX