adameste / anidbcli

AniDB UDP API client written in Python
MIT License
33 stars 7 forks source link

Renaming doesn't work properly. #27

Open Xentros opened 2 years ago

Xentros commented 2 years ago

Updating the anidb library seems working. But when I try to rename my files, they always end up in " [] - -.mkv". I tried all possible combinations from the available tags but none of them seems to work.

adameste commented 2 years ago

Could you provide the exact command you have used? Either it is wrong, or anidb does not return any data.

Xentros commented 2 years ago

anidbcli -r -e mkv,mp4 api -u "myuser" -p "mypw" -r "%a_romaji% - %a_kanji% - %a_english% - %ep_no% [%g_name%] (%crc32%)" --state 2 -a "."

For the test I added all kind of % to see which one is working.

adameste commented 2 years ago

Exact same command seems to be working just fine, did you try it with any other release? It's possible that anidb doesn't provide the data for that file (althought it should end up with error).

Xentros commented 2 years ago

I tried an anime from the last and one from the current season, both animes should be there as it was added to my anidb library.

I tried to debug the python code, but its a bit difficult as you get banned after trying it 5-6 times. I am not an expert in python, if you can help me to help debug it for you - i maybe can help and find the issue.

adameste commented 2 years ago

Sorry, I totally forgot about this issue. For debugging/running invoking anidbcli multiple times in a single batch you can invoke it with parameter -t, anidbcli will then reuse the previous session token (if available) and you will not get banned.