Closed ahmedelgabri closed 4 years ago
Hmm, so if I'm understanding correctly, the download path in your config is set to /Users/ahmed/.local/share/shellcaster/
, but when you download a file it gets put in ~/Library/Application Support/shellcaster
. But then when you go to play the file, it can't play it. Is that correct? And just guessing from the paths, it sounds like you're on a Mac?
Honestly, based on what you're describing it sounds like it's not finding the config at all and just falling back on the default options. Where did you put your config file? Please note that on a Mac, the default location it's looking for it is in ~/Library/Preferences/shellcaster/config.toml
(although to be frank, I don't have a Mac, so this has not been extensively tested). If you want to put your config file elsewhere, this needs to be communicated to the program when you start it up, via shellcaster -c /path/to/config.toml
. If that's what you have done, then there would seem to be a bug, because it should be giving you a hard failure if you've passed a path to it and it can't read from that file for whatever reason.
Honestly, based on what you're describing it sounds like it's not finding the config at all and just falling back on the default options. Where did you put your config file? Please note that on a Mac, the default location it's looking for it is in
~/Library/Preferences/shellcaster/config.toml
That was the problem, I was expecting it to look inside $XDG_CONFIG_HOME/shellcaster/config.toml
then fallback to ~/.config/shellcaster/config.toml
but having ~/Library/Preferences/shellcaster/config.toml
as a default is a surprise for me to be honest. I understand that these folders are supposed to the equivalent of $XDG_CONFIG_HOME
& stuff on Mac, but I have barely used a CLI tool that actually puts config there & I guess that's why I confused & assumed something else.
I'm trying Planet Money podcast from NPR & this is the feed URL https://feeds.npr.org/510289/podcast.xml
You can see that I have two downloaded episodes
When I try to play it says "Error: Could not play file. Check configuration." & here is my configuration. But I'm also trying to locate the episode on disk to test the
mpv %s
command which should work ~but if I dols $XDG_DATA_HOME/
there is no shellcaster folder there…~ I found it under~/Library/Application Support/shellcaster
, which makes me wonder why it's not respecting my config?