Code Monkey home page Code Monkey logo

web2tv's Introduction

ReenigneArcher

I want to automate every single thing.

I maintain LizardByte, an organization dedicated to cloud gaming solutions.


LizardByte Projects

Project Description
.github GitHub Stars GitHub Top Language GitHub issues
Org level repo for LizardByte, containing re-useable actions, replication actions for common files, and more.
build-deps GitHub Stars GitHub Top Language GitHub issues
Prebuilt dependencies for LizardByte projects.
db GitHub Stars GitHub Top Language GitHub issues
Video game database based on IGDB.
discord-bot GitHub Stars GitHub Top Language GitHub issues
Discord bot to help manage the LizardByte discord server.
GSMS GitHub Stars GitHub Top Language GitHub issues
GameStream migration service for Sunshine.
LizardByte.github.io GitHub Stars GitHub Top Language GitHub issues
The website for LizardByte. Featuring localization to various languages with translations performed by the community. Utilizing JavaScript, bootstrap, and font-awesome.
plexhints GitHub Stars GitHub Top Language GitHub issues
Python type hinting library for Plex plugin development.
PlexyGlass GitHub Stars GitHub Top Language GitHub issues
Plugin for Plex Media Server, that enables additional URL services, including a working YouTube URL service!
Plugger GitHub Stars GitHub Top Language GitHub issues
WIP: Plugin manager for Plex Media Server.
PluggerDB GitHub Stars GitHub Top Language GitHub issues
Plex Media Server plugin database. Database populated via codeless contributions using GitHub issues.
PyStream GitHub Stars GitHub Top Language GitHub issues
WIP: Experimental project to test various capture and streaming protocols.
python-plexapi-backport GitHub Stars GitHub Top Language GitHub issues
A backport of Python-PlexAPI that supports Python 2.7.
reddit-bot GitHub Stars GitHub Top Language GitHub issues
Reddit bot to help manage the LizardByte subreddit.
RetroArcher-plex GitHub Stars GitHub Top Language GitHub issues
RetroArcher metadata plugin for Plex.
RetroArcher GitHub Stars GitHub Top Language GitHub issues
WIP: Game streaming server / front-end.
Sunshine GitHub Stars GitHub Top Language GitHub issues
Self-hosted game stream host for Moonlight.
Themerr-jellyfin GitHub Stars GitHub Top Language GitHub issues
Plugin for Jellyfin that adds theme songs to movies and tv shows using ThemerrDB.
Themerr-kodi GitHub Stars GitHub Top Language GitHub issues
Plugin for Kodi that adds theme songs to movies and tv shows using ThemerrDB.
Themerr-plex GitHub Stars GitHub Top Language GitHub issues
Plugin for Plex Media Server that adds theme songs to collections, movies, and tv shows using ThemerrDB.
ThemerrDB GitHub Stars GitHub Top Language GitHub issues
Movie, TV Show, and Video Game Theme Song Database. Database populated via codeless contributions using GitHub issues.
uno GitHub Stars GitHub Top Language GitHub issues
Cache LizardByte data using GitHub actions. Data to be consumed by our Website, Documentation, Discord bot, etc.

Other Open Source Contributions

Media Players/Servers

Plex

pkkid/python-plexapi LukeHagar/plex-docs

Jellyfin

oddstr13/jellyfin-plugin-repository-manager jellyfin/jellyfin.org jellyfin/jellyfin-plugin-template

Gaming

IGDB

twitchtv/igdb-api-python

RetroArch

libretro/libretro-super libretro/retroarch-joypad-autoconfig

Cloud Gaming

moonlight-stream/moonlight-android TheElixZammuto/moonlight-xbox games-on-whales/inputtino games-on-whales/gow

Misc

hugo19941994/auto-datfile-generator

Python

breathe-doc/breathe ytdl-org/youtube-dl openatx/adbutils ansible/ansible-lint

GitHub Actions

dev-drprasad/delete-older-releases hheyhusen/archlinux-package-action mshick/add-pr-comment

Homelab

HomeAssistant

moralmunky/Home-Assistant-Mail-And-Packages

Misc

Codecov

codecov/codecov-action

Docker

linuxserver/docker-jellyfin linuxserver/docker-mods

AppImage

AppImage/docs.appimage.org AppImage/appimage.github.io

MSYS

msys2/MINGW-packages

web2tv's People

Contributors

nwithan8 avatar reenignearcher avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

web2tv's Issues

getting error running plex.py when creating xml

getting error running plex.py when creating xml (using branch not main)

creating m3u is fine

below is top and bottom of run upto error received I XXXX my token

$ python3 plex.py -t=XXXXXXXXXXXXXXXXXX -d=1 -x="plex2us.xml" --xml

Loading Grid for PlexTV, day: 1/1
url[1]: https://epg.provider.plex.tv/grid?type=1%2C4&sort=beginsAt&endsAt%3E=1640962800&beginsAt%3C=1641049200&X-Plex-Token=XXXXXXXXXXXX&X-Plex-Language=en
Unknown Title
Unknown Title
Unknown Title
Unknown Title
Unknown Title
Unknown Title
Unknown Title
Unknown Title
Unknown Title
Unknown Title
Unknown Title
Unknown Title
Unknown Title
Journy's Bourdain All Day
Journy's Bourdain All Day
Journy's Bourdain All Day
Journy's Bourdain All Day
Journy's Bourdain All Day
Journy's Bourdain All Day
Journy's Bourdain All Day
Journy's Bourdain All Day
Journy's Bourdain All Day
Journy's Bourdain All Day
Journy's Bourdain All Day
Journy's Bourdain All Day
Journy's Bourdain All Day
Journy's Bourdain All Day
..
..
Best TV Ever ID
Return of the Androids
Lure of Light
Freezing Torture
The Destroying Ray
Traceback (most recent call last):
File "/storage/emulated/0/IPTV/web2tv-20210822/plex.py", line 543, in
main()
File "/storage/emulated/0/IPTV/web2tv-20210822/plex.py", line 438, in main
xmltv_ns = f'{xmltv_ns}.{int(program[number]) -1}.'
ValueError: invalid literal for int() with base 10: '0-1'

Plutotv.py "encoding" error on m3u write attempt

All requirements installed.

When attempting to write m3u file plutotv.py generates "encoding" error. However --xml argument works fine.

$ python ./plutotv.py --m3u

hours: 10
offset: -0000
timezone: -0000
xmlFile: plutotv.xml
m3uFile: plutotv.m3u
prefix:
startNumber: 1
keepNumber: False
streamlink: False
xml: False
m3u: True
Loading Grid for PlutoTV
url: https://service-channels.clusters.pluto.tv/v1/guide?start=2021-04-17T12:00:00-00:00&stop=2021-04-17T22:30:00-00:00
Channels Found: 301
m3u is ready to write
m3u is being created
Traceback (most recent call last):
File "./plutotv.py", line 615, in
with open(m3u_destination, "w", encoding='utf-8') as f: #https://stackoverflow.com/a/42495690/11214013
TypeError: 'encoding' is an invalid keyword argument for this function

m3u_modder.py does not work

Describe the Bug

my settings look like this
image
however, these settings only work for the plutotv.py script.

the m3u_modder.py does not create a playable m3u for converting ersatz tv m3us to be played in streamlink through xteve to emby or plex. only the plutotv.py script is working that way.

Code Snippets

C:\cygwin64\home\user\xteve2>python C:\cygwin64\home\user\xteve2\web2tv-main\m3u_modder.py -i http://localhost:8409/iptv/channels.m3u -o C:\cygwin64\home\user\xteve2\streamlink.m3u

Expected Behavior

No response

Additional Context

No response

Operating System and Version

windows 10

Python Version

Python 3.7.9

issue with getting playlist

Hello
im getting this error what should i do to fix ?

root@Ubuntu-1804-bionic-64-minimal ~/web2tv-main # python plutotv.py
hours: 10
offset: -0000
timezone: -0000
xmlFile: plutotv.xml
m3uFile: plutotv.m3u
prefix:
startNumber: 1
keepNumber: False
streamlink: False
xml: False
m3u: False
Loading Grid for PlutoTV
url: https://service-channels.clusters.pluto.tv/v1/guide?start=2021-02-17T23:00:00-00:00&stop=2021-02-18T09:30:00-00:00
Traceback (most recent call last):
File "plutotv.py", line 219, in
'channelName': fix(grid['channels'][x]['name']), #name
File "plutotv.py", line 37, in fix
text = str(html.escape(text, quote=False).encode('ascii', 'xmlcharrefreplace'))[2:-1] #https://stackoverflow.com/a/1061702/11214013
AttributeError: 'module' object has no attribute 'escape'

[plex2xml] Get actual program categories

Script currently selects category based on channel number. One issue with this is plex seems to change the channel numbers. The next issue is the categories defined in the script are very generic. If we pull them from plex the category information will be more accurate.

An example url to get categories/genres/tags from is below.

https://epg.provider.plex.tv/library/metadata/?includeConcerts=1&includeExtras=1&includeOnDeck=1&includePopularLeaves=1&includePreferences=1&includeReviews=1&includeChapters=1&includeStations=1&includeExternalMedia=1&asyncAugmentMetadata=1&asyncCheckFiles=1&asyncRefreshAnalysis=1&asyncRefreshLocalMediaAgent=1&X-Plex-Token=X-Plex-Language=

This will create a significant amount of request to the plex's epg provider, so need to determine a way to cache the results.

the mod m3u doesnt convert anything to a playable format for streamlink

Describe the Bug

i have converted an m3u but it does not play in streamlink

here is the command
C:\cygwin64\home\user\xteve2>python C:\cygwin64\home\user\xteve2\web2tv-main\m3u_modder.py -i http://localhost:8409/iptv/channels.m3u -o C:\cygwin64\home\user\xteve2\streamlink.m3u

this is the output

#EXTM3U url-tvg="http://localhost:8409/iptv/xmltv.xml" x-tvg-url="http://localhost:8409/iptv/xmltv.xml"

#EXTINF:0 tvg-id="68.etv" channel-id="vP98rrCWT0O1gnFUt7IXRQ" channel-number="68" CUID="vP98rrCWT0O1gnFUt7IXRQ" tvg-chno="68" tvg-name="24/7 christmas favorites 3" tvg-logo="http://localhost:8409/iptv/logos/2CC550640213402C609F44B333CA521E.jpg" group-title="ErsatzTV" tvc-stream-vcodec="h264" tvc-stream-acodec="aac", 24/7 christmas favorites 3

httpstream://http://localhost:8409/iptv/channel/68.ts

Operating System and Version

windows 10

Python Version

Python 3.7.9

invalid syntax with path

Describe the Bug

invalid syntax in path

Code Snippets

>>> m3u_modder.py -i C:\cygwin64\home\user\PlutoIPTV\playlist.m3u8 -o C:\cygwin64\home\user\xteve2\PlutoXteveStreamlink.m3u
  File "<stdin>", line 1
    m3u_modder.py -i C:\cygwin64\home\user\PlutoIPTV\playlist.m3u8 -o C:\cygwin64\home\user\xteve2\PlutoXteveStreamlink.m3u
                     ^
SyntaxError: invalid syntax

Expected Behavior

No response

Additional Context

No response

Operating System and Version

windows 10

Python Version

Python 3.7.9

pluto tv 80s rewind channel freezing

Describe the Bug

only the pluto tv 80s Rewind channel is freezing for me every time it goes to commercial. this is the reason i switched from the old pluto tv script to use your pluto tv script to be used with xteve and streamlink.
would you happen to know what i can try? the other channels make it through the commercials fine though.

Code Snippets

No response

Expected Behavior

the 80s channel should transition through the commercial and then continue playing the show

Additional Context

it seems to happen exactly before a commercial starts, is when it freezes forever. i never make it to the pluto tv screen saver commercial. but the channel plays fine up until the commercial.

also if i stop the channel and start it again, the channel plays fine up until the commercial again, then freezes again.

Operating System and Version

windows 10, regual android 9

Python Version

Python 3.7.9

http-user-agent=xteve could not be found.

Describe the Bug

when i run the mod m3u in xteve through emby, xteve shows this error and will not start the stream

Code Snippets

VLC log:                error: The specified stream(s) ':http-user-agent=xteve' could not be found.

Expected Behavior

No response

Additional Context

No response

Operating System and Version

windows 10

Python Version

Python 3.7.9

plutotv.py error

Describe the Bug

the m3u and epg is not being generated at all

Code Snippets

C:\cygwin64\home\user\xteve2\web2tv-main>python plutotv.py -e 12 -x C:\cygwin64\home\user\xteve2\streamlinkPlutoEpg.xml -m C:\cygwin64\home\user\xteve2\streamlinkPlutoM3U.m3u --streamlink
Loading Grid for PlutoTV
url: https://service-channels.clusters.pluto.tv/v1/guide?start=2022-02-13T04:30:00-00:00&stop=2022-02-13T17:00:00-00:00

Expected Behavior

No response

Additional Context

No response

Operating System and Version

windows 10

Python Version

Python 3.7.9

plex.py failing at the moment generating epg

Describe the Bug

plex.py failing at the moment generating epg

Code Snippets

'''Loading Grid for PlexTV, day: 1/2                                               url[1]: https://epg.provider.plex.tv/grid?type=1%2C4&sort=beginsAt&endsAt%3E=1654605000&beginsAt%3C=1654691400&X-Plex-Token=<MyPlexToken>&X-Plex-Language=en                                                                             Traceback (most recent call last):                                                File "/web2tv/plex.py", line 549, in <module>                                     main()                                                                        File "/web2tv/plex.py", line 248, in main                                         metadata_data['added_at'] = grid['MediaContainer']['Metadata'][y]['addedAt']KeyError: 'addedAt'''''

Expected Behavior

generate epf

Additional Context

No response

Operating System and Version

ubuntu

Python Version

Python 3.10.4

Add Roku

Could be challenging to do this...

Roku provides/displays only information about currently airing content.
Additionally content is loaded/rendered on demand, instead of preloaded. I don't currently know how to handle this, but this link may help. (https://dvenkatsagar.github.io/tutorials/python/2015/10/26/ddlv/)

The following url is to see all live tv. Is the string between browse/ and /see-all a token?
https://therokuchannel.roku.com/browse/w.J1mzrama89hRP9GM2D52iGe2LZZL6lHK5xJdY7PRUbJ42N6416hpR8PeN/see-all

As images are loaded on this page they appear under network inspection tools. An example image url is the following... how to get these urls as they are not part of the page source?
https://images.sr.roku.com/idType/roku/context/trc/id/3b2d767e3df253609c04396f87eb3cd6/images/titan/assets/aHR0cHM6Ly9zdGF0aWMtcy1jZG4ueHVtby5jb20vcm9rdV9hc3NldHMvVFJDJTIwL2JyYW5kVGlsZV9UUkNfdm95YWdlci5wbmc.png/presets/29eb2b5a1e673afec27e5a058a577573

If we parse the trc/id and add it to the following string we get a url that gives us json data!
https://therokuchannel.roku.com/api/v2/homescreen/content/https%3A%2F%2Fcontent.sr.roku.com%2Fcontent%2Fv1%2Froku-trc%2F

example:
https://therokuchannel.roku.com/api/v2/homescreen/content/https%3A%2F%2Fcontent.sr.roku.com%2Fcontent%2Fv1%2Froku-trc%2F3b2d767e3df253609c04396f87eb3cd6

plex.py not working

Describe the Bug

plex.py started today not working
attached is error log from run
plexrunlog.txt

Code Snippets

''' Traceback (most recent call last):
File "/storage/emulated/0/IPTV/web2tv/plex.py", line 3, in
import requests_cache
File "/data/data/com.termux/files/usr/lib/python3.10/site-packages/requests_cache/init.py", line 43, in
from .backends import *
File "/data/data/com.termux/files/usr/lib/python3.10/site-packages/requests_cache/backends/init.py", line 8, in
from .base import BaseCache, BaseStorage
File "/data/data/com.termux/files/usr/lib/python3.10/site-packages/requests_cache/backends/base.py", line 18, in
from ..serializers import init_serializer
File "/data/data/com.termux/files/usr/lib/python3.10/site-packages/requests_cache/serializers/init.py", line 6, in
from .preconf import (
File "/data/data/com.termux/files/usr/lib/python3.10/site-packages/requests_cache/serializers/preconf.py", line 26, in
base_stage = CattrStage() #: Base stage for all serializer pipelines
File "/data/data/com.termux/files/usr/lib/python3.10/site-packages/requests_cache/serializers/cattrs.py", line 32, in init
self.converter = init_converter(factory)
File "/data/data/com.termux/files/usr/lib/python3.10/site-packages/requests_cache/serializers/cattrs.py", line 67, in init_converter
converter.register_structure_hook(
File "/data/data/com.termux/files/usr/lib/python3.10/site-packages/cattr/converters.py", line 263, in register_structure_hook
self._structure_func.register_cls_list([(cl, func)])
File "/data/data/com.termux/files/usr/lib/python3.10/site-packages/cattr/dispatch.py", line 57, in register_cls_list
self._single_dispatch.register(cls, handler)
File "/data/data/com.termux/files/usr/lib/python3.10/functools.py", line 856, in register
raise TypeError(
TypeError: Invalid first argument to register(). ForwardRef('CachedResponse') is not a class.
'''

Expected Behavior

No response

Additional Context

No response

Operating System and Version

termux android

Python Version

3.10.2

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.