mov-cli / mov-cli-youtube

A mov-cli v4 plugin for watching youtube.
https://pypi.org/project/mov-cli-youtube/
MIT License
18 stars 1 forks source link

broken #4

Closed pirate486743186 closed 4 months ago

pirate486743186 commented 5 months ago

latest mov-cli, git version of plugin and last git commit of pytube on debian

[CRITICAL] (mov_cli) - An error occurred inside a plugin. This is MOST LIKELY not a mov-cli error, make SURE mov-cli and your plugins are up to date. Also report this to the plugin, not mov-cli! 
Error: 'NoneType' object has no attribute 'url'
THEGOLDENPRO commented 4 months ago

Before this occured I was actually working on moving away from pytube and switching to yt-dlp for the next iteration.

At the moment the new plugin doesn't seem to have this issue so if you are desperate you can install the work in progress plugin directly from git with this pip command:

pip install git+https://github.com/mov-cli/mov-cli-youtube@v1.2 -U
PRSFM commented 4 months ago

Before this occured I was actually working on moving away from pytube and switching to yt-dlp for the next iteration.

At the moment the new plugin doesn't seem to have this issue so if you are desperate you can install the work in progress plugin directly from git with this pip command:

pip install git+https://github.com/mov-cli/mov-cli-youtube@v1.2 -U

Thanks for the workaround Goldy.

THEGOLDENPRO commented 4 months ago

has been fixed in v1.1.3, I found a workaround for pytube

pirate486743186 commented 4 months ago

it's still broken... same error

THEGOLDENPRO commented 4 months ago

it's still broken... same error

I wasn't getting the same error but I was experiencing no audio issues. #9 You'll have to keep on using the new YouTube plugin for now until this is fixed on pytube's end.

pip install mov-cli-youtube==1.2a4 -U
pirate486743186 commented 4 months ago

for me it still broken, i get this error

  File "/usr/lib/python3.11/dist-packages/mov_cli/cli/scraper.py", line 26, in scrape
    media = scraper.scrape(choice, episode)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/dist-packages/mov_cli_youtube/yt_dlp.py", line 75, in scrape
    return Single(
           ^^^^^^^
TypeError: Single.__init__() got an unexpected keyword argument 'audio_url'

i didn't installed it with pip, i'm packaging it and using dependencies of debian. That could be the problem. I also tried yt-dlp from debian and the latest from git.

pytubefix seems to work fine on it's own.

r3tr0ananas commented 4 months ago

What version is your mov-cli?

pirate486743186 commented 4 months ago

4.3.0 as i said above, it could be a problem with debian dependencies all the others work though ( i haven't updated them for a while).

THEGOLDENPRO commented 4 months ago

Yeah it seems the Debian packages are using GitHub releases and those are really out of data. We'll update them soon™.

pirate486743186 commented 4 months ago

lol... ananas was right. It was broken because i was still on mov-cli 4.3.0. Until now i thought 4.3.0 was the latest...

THEGOLDENPRO commented 4 months ago

lol... ananas was right. It was broken because i was still on mov-cli 4.3.0. Until now i thought 4.3.0 was the latest...

All distro packages at the moment are unofficial, we only officially release to pypi. There you will always find the latest and working versions hence why we recommend pipx.

pirate486743186 commented 4 months ago

i didn't notice that a new version was out because you didn't do a release. Just make sure to do github releases