keithfancher / tvmv

Bulk-rename TV episode files with minimal fuss
GNU General Public License v3.0
32 stars 2 forks source link

Expand API key section of the readme #7

Closed jiminorris closed 1 month ago

jiminorris commented 5 months ago

I'm on Debian testing, and placing a text file containing the API key in $XDG_CONFIG_HOME/tvmv/tmdb-api-key doesn't seem to work.

Passing the key using the -k switch works fine.

I presume I'm being dense, but should the key be held in a particular type or format not currently noted in the readme?

keithfancher commented 5 months ago

Thank you for pointing this out! It appears that this env variable is often not explicitly defined. I'll update the README!

It looks like if $XDG_CONFIG_HOME is not defined it defaults to ~/.config/. So if you put your API key in a file at ~/.config/tvmv/tmdb-api-key, it should work for you.

Please let me know if it doesn't! (And let me know what the specific error message is as well.

keithfancher commented 1 month ago

By the way, I just released a new version of tvmv which doesn't require you to use your own API at all, so hopefully this solves any remaining issues you might have (albeit in a slightly roundabout way!) :smile:

Closing this out for now, but feel free to re-open if you're still having issues!