Taapat / enigma2-plugin-youtube

YouTube enigma2 plugin to manage your youtube account and wach videos
GNU General Public License v2.0
34 stars 38 forks source link

UnicodeEncodeError: 'ascii' codec can't encode character '\u017e' in position 3030: ordinal not in range(128) #172

Closed s3n0 closed 2 years ago

s3n0 commented 2 years ago

Hi.

I'm not sure if the issue is with the YouTube plugin or directly with OpenATV 7.1 beta (with Python 3.10.x).

The error occurs when I try to switch the resolution of max. resolution in Youtube plugin configuration from 720p to 1080p and after switching to 1080p I will use the green button or OK button on the RCU.

For OpenATV 6.4, switching from 720p to 1080p maximum YT video resolution works fine. The problem only occurs with OpenATV 7.1.

Here is the crash-log file: enigma2_crash_1650482477.log

Thanks.

Taapat commented 2 years ago

Please try on latest plugin version. In it I removed the ssl key error workaround which affects the encoding.

s3n0 commented 2 years ago

I use OpenATV and there, however, every update of the Youtube plugin is taken into account. Or no ? 🤔

Should I uninstall the Youtube plugin belonging to OpenATV (feed server) and install the original Youtube plugin from your github ? In this case, however, I'm afraid something won't work (due to possible incompatibility). 😇

Taapat commented 2 years ago

In your log I see that you do not have the latest plugin version which was updated 2 days ago. How often the OpenATV update plugin feed I do not know. For the test you need to install the latest plugin version for Python 3: https://github.com/Taapat/enigma2-plugin-youtube/releases/download/git1019/enigma2-plugin-extensions-youtube_py3+git1019+5739c80-r0.0_all.ipk This should not eliminate any problems.

s3n0 commented 2 years ago

Thanks.

It looks like the 720p -> 1080p change settings works (without system crash). I uninstalled the original OpenATV 7.1 YouTube plugin and I installed the IPK package of the YouTube plugin from you, which you added as an attachment.


But I have another problem. I should probably create another thread... applies to scrolling (change the video position) youtube videos with 1080p resolution. These videos cannot be moved back and forth (on RCU numeric keys). But ... after switching to 720p maximum resolution video limit, then, these 720p youtube videos can be moved back and forth.

Note: The problem has been manifesting for a long time, not just after installing a new IPK package from you.

My second problem, however, may also be related to the unofficial youtube API, if I'm not mistaken. Respectively, there is a problem with the 1080p video source limitation - directly from the youtube streaming server. Or am I wrong ? Do 1080p videos work at the same time when trying to move video forward and backward ?

Taapat commented 2 years ago

Rewind has nothing to do with the youtube API. My plugin uses official and google-approved API access. This is a problem with the DASH MP4 format on enigma, which is used in high resolution. Try the serviceapp plugin: https://github.com/Taapat/enigma2-plugin-youtube/issues/57

s3n0 commented 2 years ago

So, the Youtube-plugin uses the default player configured in the Enigma2 settings ? I thought the Youtube-plugin contained some unique (self) video-player. This is gratifying news that the Youtube-plugin can play online videos in any other player, which I choose in the Enigma2 settings.

Thanks again.

I will definitely try to use this ExtEplayer as the default player (with Enigma reconfiguration - using the ServiceApp plugin).

However, at the moment I have a problem (grrrrr... again...) with the OpenATV 7.1 test version... at the point of the ServiceApp installation :). So, I will have to try it on the currently stable version of ATV 6.4 :). Maybe later. But I believe it will work.