tonycpsu / streamglob

A console media browser designed to facilitate live and time-shifted viewing of online content.
GNU General Public License v3.0
34 stars 10 forks source link

Error after: provider mlb initializing view #60

Open orizzle opened 2 years ago

orizzle commented 2 years ago

Ubuntu focal, fresh install. Would really like to get this working.

`$ streamglob 2022-04-09 16:40:29.447 streamglob.providers [ init:90 ] [ info] loading providers 2022-04-09 16:40:30.026 streamglob.providers [ base:222 ] [ info] provider instagram initialized 2022-04-09 16:40:30.027 streamglob.providers [ base:222 ] [ info] provider mlb initialized 2022-04-09 16:40:30.028 streamglob.providers [ base:222 ] [ info] provider nhl initialized 2022-04-09 16:40:30.028 streamglob.providers [ base:222 ] [ info] provider rss initialized 2022-04-09 16:40:30.029 streamglob.providers [ base:222 ] [ info] provider scraper initialized 2022-04-09 16:40:30.032 streamglob.providers [ base:222 ] [ info] provider youtube initialized 2022-04-09 16:40:30.032 streamglob.scrapers [ init:28 ] [ info] loading scrapers 2022-04-09 16:40:30.032 streamglob.scrapers [ init:32 ] [ info] loading scraper: Simple 2022-04-09 16:40:30.033 streamglob.model [ model:1256] [ info] initializing data model 2022-04-09 16:40:30.060 streamglob.providers [ base:447 ] [ info] provider instagram initializing view 2022-04-09 16:40:30.120 streamglob.providers [ base:447 ] [ info] provider rss initializing view 2022-04-09 16:40:30.131 streamglob.providers [ base:447 ] [ info] provider scraper initializing view 2022-04-09 16:40:30.132 streamglob.providers [ base:447 ] [ info] provider youtube initializing view 2022-04-09 16:40:30.412 streamglob.providers [ base:447 ] [ info] provider mlb initializing view None Traceback (most recent call last): File "/home/riz/.local/lib/python3.8/site-packages/streamglob/providers/base.py", line 512, in parse_spec selection, filters, identifier_options = self.parse_identifier(identifier) File "/home/riz/.local/lib/python3.8/site-packages/streamglob/providers/bam.py", line 2130, in parse_identifier raise SGIncompleteIdentifier streamglob.exceptions.SGIncompleteIdentifier

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/home/riz/.local/bin/streamglob", line 8, in sys.exit(main()) File "/home/riz/.local/lib/python3.8/site-packages/streamglob/main.py", line 604, in main action, provider, selection, opts = providers.parse_uri(options.uri) File "/home/riz/.local/lib/python3.8/site-packages/streamglob/providers/init.py", line 49, in parse_uri selection, options = p.parse_spec(spec) File "/home/riz/.local/lib/python3.8/site-packages/streamglob/providers/base.py", line 514, in parse_spec except SGIncompleteIdentifier: NameError: name 'SGIncompleteIdentifier' is not defined `

tonycpsu commented 2 years ago

Try to fetch latest main branch, should fix this problem.

orizzle commented 2 years ago

Try to fetch latest main branch, should fix this problem.

thanks for fast reply and code fix. I am up and running but had a few issues along the way I will describe below. Thank you for your awesome work here

running: streamglob -v mlb/2022-04-10.lad

was getting directory not found, so I created: mkdir -p /usr/local/lib/python3.8/dist-packages/streamglob/resources/css

using default config gave missing attribute "disabled" in the programs section of config, so I added "disabled: true" to all except vnc which I made "disabled: false"

/usr/local/lib/python3.8/dist-packages/streamglob/widgets/init.py line 498-499 were causing some error dealing with logging, I commented these lines out I believe comparing "tree" to "int" was the error

had to do an: apt-get install streamlink imagemagick (if these were in the pre-reqs, I missed them)

then was getting issues with streamlink, seeing an input/output error. tracked it down to --force-progress not being a recognized option, so removed it from /usr/local/lib/python3.8/dist-packages/streamglob/programs.py line 1000

all is good now!