Closed vivCoding closed 2 years ago
I was an mpsyt user, now trying yewtube. My old mpsyt playlists will play fine, but I cannot create new playlists due to this error.
Using Mac OS Big Sur:
$ yt --debug
yewtube version : 2.8.4
yt_dlp version : 2022.07.18
Python version : 3.10.5 (main, Jun 23 2022, 17:15:32) [Clang 13.0.0 (clang-1300.0.29.30)]
Processor : i386
Machine type : x86_64
Architecture : 64bit,
Platform : macOS-11.6.8-x86_64-i386-64bit
sys.stdout.enc : utf-8
default enc : utf-8
Config dir : /Users/gbiles/.config/mps-youtube
dbus : None
glib : False
env:TERM : screen-256color
env:SHELL : /bin/zsh
--
yt pl <id>
renders the playlist fine, but save <foo>
produces error:
> save xxxxxx
Traceback (most recent call last):
File "/Users/gbiles/.local/pipx/venvs/yewtube/lib/python3.10/site-packages/mps_youtube/main.py", line 69, in matchfunction
func(*matches)
File "/Users/gbiles/.local/pipx/venvs/yewtube/lib/python3.10/site-packages/mps_youtube/commands/local_playlist.py", line 156, in open_save_view
g.userpl[name] = Playlist(name, [Video(i['id'], i['title'], parse_video_length(i['duration'])) for i in g.pafy_pls[g.selected_pafy_pls_id][0].videos])
KeyError: ''
--
Traceback (most recent call last):
File "/Users/gbiles/.local/pipx/venvs/yewtube/lib/python3.10/site-packages/mps_youtube/main.py", line 69, in matchfunction
func(*matches)
File "/Users/gbiles/.local/pipx/venvs/yewtube/lib/python3.10/site-packages/mps_youtube/commands/local_playlist.py", line 156, in open_save_view
g.userpl[name] = Playlist(name, [Video(i['id'], i['title'], parse_video_length(i['duration'])) for i in g.pafy_pls[g.selected_pafy_pls_id][0].videos])
KeyError: ''
Error fetching data. Possible network issue.
''
Config:
{
"ORDER": "relevance",
"USER_ORDER": "",
"MAX_RESULTS": 19,
"CONSOLE_WIDTH": 80,
"MAX_RES": 2160,
"PLAYER": "mpv",
"PLAYERARGS": "",
"ENCODER": 0,
"NOTIFIER": "",
"CHECKUPDATE": true,
"SHOW_PLAYER_KEYS": true,
"FULLSCREEN": false,
"SHOW_STATUS": true,
"ALWAYS_REPEAT": false,
"COLUMNS": "",
"DDIR": "/Users/gbiles/Downloads/mps",
"OVERWRITE": true,
"SHOW_VIDEO": false,
"SEARCH_MUSIC": true,
"WINDOW_POS": "",
"WINDOW_SIZE": "",
"DOWNLOAD_COMMAND": "",
"LOOKUP_METADATA": false,
"LASTFM_USERNAME": "",
"LASTFM_PASSWORD": "",
"LASTFM_API_KEY": "",
"LASTFM_API_SECRET": "",
"AUDIO_FORMAT": "auto",
"VIDEO_FORMAT": "auto",
"PAGES": 3,
"AUTOPLAY": false,
"SET_TITLE": true,
"MPRIS": false,
"SHOW_QRCODE": false,
"HISTORY": true,
"INPUT_HISTORY": true,
"VLC_DUMMY_INTERFACE": false
}
Cannot save playlists using the
save
command.I realize that playlists are auto saved everytime a song is added to a playlist using
add <num> <playlist>
. However, usingadd <num>
to the current playlist OR removing a song usingrm <num>
does not auto save the playlist. And when one attempts to using thesave
command to save it, it fails. Perhaps I am failing to understand how the command work.Issue
Using
save
orsave <name>
command results in the following error (the empty quotes intentional)Steps to reproduce
No playlists have been created
yt
/query
add <num> <playlist>
open <playlist>
(set the the current playlist to<playlist>
)/query
add <num>
vp
save <playlist>
add <num>
command is not savedYour Environment
Running on EndeavourOS 22.1, Python 3.10.4, pip 21.0
Have tried with Python 3.6 and 3.8 as well
Output from
yt --version
Config (output from
set
)