anidbcli icon indicating copy to clipboard operation
anidbcli copied to clipboard

Renaming doesn't work properly.

Open Xentros opened this issue 3 years ago • 5 comments

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.

Xentros avatar Oct 10 '22 10:10 Xentros

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

adameste avatar Oct 10 '22 10:10 adameste

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.

Xentros avatar Oct 10 '22 12:10 Xentros

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).

adameste avatar Oct 10 '22 14:10 adameste

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.

Xentros avatar Oct 10 '22 14:10 Xentros

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.

adameste avatar Nov 02 '22 07:11 adameste