Open
Conversation
fix: no color support & suffle all bug fix
Thanks to @galgot
fixed: mps-youtube#1243 bumped yt-dlp version
This adds the pip / pipx commands to upgrade all the dependencies. This makes directed actions like mps-youtube#1225 (comment) unnecessary.
* Update project URL * Update __version__ in setup.py This suppresses the update notifications * help new: more accurate helptext `help new` doesn't actually check whether there's a new version, it shows the changelog for the latest release no matter what. Update helptext to reflect this.
…rches to return all videos including optional filtering of search terms (mps-youtube#1282) (mps-youtube#1288) * Updated the all_videos_from_channel function to return all videos from a channel, not just the first page of playlist results (previous method only returned up to 100 videos max). * Updated the usersearch_id function to filter the returned videos by search term in the title or description. This restores the ability to search a user's videos. Co-authored-by: Robert Hill <robert.hill@uphillsolutions.tech>
Signed-off-by: Rui Chen <rui@chenrui.dev>
…be passed as argument error
…#1289) demonstrate how to use existing mpv input bindings
* Add pyreadline3 backup import for readline
`readline` is unavailable on Windows. Without this fix, the following error occurs when attempting to launch yewtube:
```
File "C:\Python313\Lib\site-packages\mps_youtube\commands\__init__.py", line 28, in command
completer.add_cmd(command)
^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'add_cmd'```
* Fix readline import handling in main.py
Handle ImportError for pyreadline3 and set has_readline flag.
---------
Co-authored-by: Talha Asghar <iamtalhaasghar@gmail.com>
- Replace youtube-search-python (archived since 2022) with actively maintained py-yt-search - Implement synchronous wrappers using asyncio.run() to maintain backward compatibility - Update all search/fetch functions: VideosSearch, ChannelsSearch, PlaylistsSearch, etc. - Replace Comments API with yt-dlp (py-yt-search lacks comments support) - Update Channel class usage for video/playlist fetching - Relax httpx version constraint to >=0.23 for compatibility - Tested: video search, channel search, playlist search, suggestions all working - Zero breaking changes to public API
- Remove .venv-1/componenthandler.py from git tracking - Update .gitignore to exclude all .venv* folders
|
I don't see any progress on this repo, not sure if it's maintained. I forked your repo @nawar and it works for me. Do you want to instead merge the branches on your repo and maintain? If not, feel free to raise more PR on mine. |
Open
Author
|
@coderamm I can maintain for now. This would be the 3rd or 4th fork of this project since its inception 🤣 |
This comment was marked as outdated.
This comment was marked as outdated.
Member
|
Update: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
The current dependency
youtube-search-pythonhas been archived since 2022 and is no longer maintained. This causes compatibility issues and prevents the library from being updated when YouTube changes their APIs.Solution
Migrate to
py-yt-search(https://github.com/AshokShau/py-yt-search), an actively maintained fork of the original library with:Changes
youtube-search-python>=1.6.5withpy-yt-search>=0.5.7asyncio.run()to maintain synchronous APIsearch_videos(),channel_search(),playlist_search(), etc.Backward Compatibility
✅ Zero breaking changes - all function signatures remain identical
✅ Synchronous API preserved - async implementation hidden behind wrappers
✅ All existing code continues to work - no changes needed in command modules
Testing
Migration Path
Users just need to: