#13 Update doc and more to help new users

Merged
LecygneNoir merged 4 commits from Zykino/prismedia:fixFirstSetup into develop 5 years ago
Zykino commented 5 years ago
There is no content yet.
Zykino commented 5 years ago
Poster

Just one thing I did not really know how/where to add: the return YT when in error.

Just one thing I did not really know how/where to add: the return YT when in error.
Poster
Owner

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?

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?
Zykino commented 5 years ago
Poster

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

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
Zykino commented 5 years ago
Poster

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 . . .
  1. Same command from the command line: It worked! And the title of the uploaded file is POUBELLE
  2. 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.
LecygneNoir closed this pull request 5 years ago
The pull request has been merged as 56873c0063.
Sign in to join this conversation.
No reviewers
No Milestone
No Assignees
2 Participants
Notifications
Due Date

No due date set.

Dependencies

This pull request currently doesn't have any dependencies.

Loading…
There is no content yet.