Odd I have missed the python-magic-bin thing, I guess it was some dependencies automatically installed on my tests systems :/
Could you develop your problem with "he return YT when in error"? Do you mean adding some TroubleShooting part in the doc?
Seems good for me, thank you a lot!
Odd I have missed the python-magic-bin thing, I guess it was some dependencies automatically installed on my tests systems :/
Could you develop your problem with "he return YT when in error"? Do you mean adding some TroubleShooting part in the doc?
My memory failed me I think. I did not remember having a nice error message for the accent on YT. I'll re-test with accent just in the filename.
Also I forgot to change the shebang to python2: https://stackoverflow.com/questions/6908143/should-i-put-shebang-in-python-scripts-and-what-form-should-it-take
I did the following upload tests with a file with accent/special chars on YT:
Batch file in utf-8: accent not recognized by Windows
[path\to]\Prismedia>prismedia_upload.py --file="[path\to\video]\Épisode1.mp4" --privac
y=private --platform=youtube --name="POUBELLE"
2018-09-11 22:47:31,000 No suitable NFO found, skipping.
file is not supported, please use mp4
[path\to]\Prismedia>pause
Press any key to continue . . .
Same command from the command line: It worked! And the title of the uploaded file is POUBELLE
Same command without the name parameter: same result as openning comment of #9. A stack error and at the end:
[...]
File "C:\Program Files\Python27\lib\json\encoder.py", line 270, in iterencode
return _iterencode(o, 0)
UnicodeDecodeError: 'utf8' codec can't decode byte 0xc9 in position 0: invalid continuation byte
Which is... not that insightful for the first time. Maybe the response of youtube will be cleaner. Or at least getting rid of the stacktrace.
I did the following upload tests with a file with accent/special chars on YT:
1) Batch file in utf-8: accent not recognized by Windows
```
[path\to]\Prismedia>prismedia_upload.py --file="[path\to\video]\Épisode1.mp4" --privac
y=private --platform=youtube --name="POUBELLE"
2018-09-11 22:47:31,000 No suitable NFO found, skipping.
file is not supported, please use mp4
[path\to]\Prismedia>pause
Press any key to continue . . .
```
2) Same command from the command line: It worked! And the title of the uploaded file is POUBELLE
3) Same command without the name parameter: same result as openning comment of #9. A stack error and at the end:
```
[...]
File "C:\Program Files\Python27\lib\json\encoder.py", line 270, in iterencode
return _iterencode(o, 0)
UnicodeDecodeError: 'utf8' codec can't decode byte 0xc9 in position 0: invalid continuation byte
```
Which is... not that insightful for the first time. Maybe the response of youtube will be cleaner. Or at least getting rid of the stacktrace.
Just one thing I did not really know how/where to add: the return YT when in error.
Seems good for me, thank you a lot!
Odd I have missed the python-magic-bin thing, I guess it was some dependencies automatically installed on my tests systems :/
Could you develop your problem with "he return YT when in error"? Do you mean adding some TroubleShooting part in the doc?
My memory failed me I think. I did not remember having a nice error message for the accent on YT. I'll re-test with accent just in the filename.
Also I forgot to change the shebang to python2: https://stackoverflow.com/questions/6908143/should-i-put-shebang-in-python-scripts-and-what-form-should-it-take
I did the following upload tests with a file with accent/special chars on YT:
Which is... not that insightful for the first time. Maybe the response of youtube will be cleaner. Or at least getting rid of the stacktrace.
56873c0063
.