Code Monkey home page Code Monkey logo

Comments (5)

DraganRatkovich avatar DraganRatkovich commented on August 11, 2024

@rexya2017 Hello,
Try pasting the link of the video you want to play and playing it via the url command with the bot.

from ttmediabot.

rexya2017 avatar rexya2017 commented on August 11, 2024

I've tried what you suggested, but the result is still I get an error in the log, and the Bot doesn't play anything.
here a log:
INFO [2021-09-17 18:23:52,286]: New message u https://www.youtube.com/watch?v=VEHNz7d4mY8 from Leon Scott Kennedy in MainThread file: init.py line 52 function run
ERROR [2021-09-17 18:23:52,874]: �[0;31mERROR:�[0m VEHNz7d4mY8: YouTube said: Unable to extract video data in TTPlayerConnector file: YoutubeDL.py line 523 function to_stderr
ERROR [2021-09-17 18:23:53,035]: �[0;31mERROR:�[0m VEHNz7d4mY8: YouTube said: Unable to extract video data in MainThread file: YoutubeDL.py line 523 function to_stderr
INFO [2021-09-17 18:23:53,037]: replied None in MainThread file: init.py line 54 function run
ERROR [2021-09-17 18:23:53,807]: �[0;31mERROR:�[0m VEHNz7d4mY8: YouTube said: Unable to extract video data in TTPlayerConnector file: YoutubeDL.py line 523 function to_stderr

from ttmediabot.

a11cf0 avatar a11cf0 commented on August 11, 2024

@rexya2017, Either you're using an outdated version of YoutubeDl, or your provider is blocking YouTube. Make sure that you have installed YoutubeDL using pip.

from ttmediabot.

rexya2017 avatar rexya2017 commented on August 11, 2024

@rexya2017, Either you're using an outdated version of YoutubeDl, or your provider is blocking YouTube. Make sure that you have installed YoutubeDL using pip.

I've updated youtube-dl via the pip3 command, and now I get a different error.
"WARNING [2021-09-18 13:09:37,434]: Unable to download webpage: HTTP Error 429: Too Many Requests in TTPlayerConnector file: YoutubeDL.py line 607 function report_warning"
Previously I had an error like the above on a windows server, and I fixed it by adding a little configuration located in the /bot/services/yt.py file:
" 'cookiefile': 'path/to/file/youtube.com_cookies.txt',"
and the result bot back to normal. But in this ubuntu I can't do that way because I don't know how to retrieve cookies on VPS Ubuntu 20 headless machine.
If possible, please tell me how to solve this, because I think this incident is caused by capcha which must be resolved soon.

from ttmediabot.

a11cf0 avatar a11cf0 commented on August 11, 2024

This should be fixed in the latest commit. However, the list of the required modules has been modified, so you will need to run pip install -r requirements.txt --upgrade in order to test these improvements.

from ttmediabot.

Related Issues (20)

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.