• 1
  • 5
  • 6
  • 7(current)
  • 8
  • 9
  • 14
[RELEASE] YouTube Channels (Video Plugin) Addon
#91
(2015-06-16, 07:44)yhaddad Wrote: I think the problem is the unicode... The add-on doesn't support RTL?
Oh, thank you yaniv. I should check my RTL channels. I didn't get any errors, just nothing.

** I hope natko1412 will be back to support this very important addon

## Well, I removed the unicode channels from the old list, but still Import them did not give error and they not listed in this new addon.
Reply
#92
If I'll change the RTL to English it works! So the problem is still the RTL language
Reply
#93
I removed hebrew from the old addon, but still no good import

I'm on android not on win. I don't see where the .db file that this addons makes is located.
Reply
#94
Hey guys, I will release a fix for unicode soon.

(2015-06-16, 07:33)yhaddad Wrote: By the way the youtube.channels file exist in addons and not in userdata folder, change the location at the defualt.py file to addons instead of the addon_data.

channelFile=xbmc.translatePath("special://profile/addon_data/"+old_addonID+"/youtube.channels")

this is the line from the old addon's default.py so it is not possible that youtube.channels file is located in addons and not in addon_data. Maybe you copied it?
Code:
channelFile=xbmc.translatePath("special://profile/addon_data/"+addonID+"/youtube.channels")

@asik1 location of the .db file is special://userdata/Database/folders.db
Reply
#95
Thanks @natko1412!

We'll wait to your update Smile
Reply
#96
(2015-06-16, 12:59)natko1412 Wrote: Hey guys, I will release a fix for unicode soon.

[quote='yhaddad' pid='2029971' dateline='1434432834']

By the way the youtube.channels file exist in addons and not in userdata folder, change the location at the defualt.py file to addons instead of the addon_data.

....

@asik1 location of the .db file is special://userdata/Database/folders.db

Thank you, I found the file and exported it to my PC.
I opened it in SQLite and indeed I can see the imported channels (multiple times) and the unicode ones.
I don't want to mess with it as I have limited knowledge of sql

** Well I couldn't help it but I think I found the culprit.
In the db file the imported stuff is marked "NoCat" folder, the native addon chanels are marked as "Other" .
So I modified few ... and hey presto even unicode are now listed in this addon root.
Great! I will clear the duplicates and rename NoCat to Other.
Hopefully with no additional errors everything will work OK.

### OK, it works. and I took it a step ahead. I added new channels I didn't have before as it's much easier to type with keyboard and not with mouse on the screen.
One think I learned is that the channel_ID in the db file need to start as UU and not UC as it's shown here on Firefox.

Thank you natko1412 !!!
Reply
#97
Hi @asik1,

I don't understand what you did...
Did you change something in the plugin python files?
Reply
#98
No, I used old version of this
http://sqlitebrowser.org/
Reply
#99
So what I need to do to import my RTL list .. ?
Reply
@asik1 thanks for report. The problem is that when I compare foldername to "NoCat" it returns false when comparing unicode to ascii so when actually folder is NoCat, it isn+t recognized as that. I hope i will find some time tomorrow to fix it. I have my finals now so please have a little patience Smile
Reply
Thanks @natko1412 !
Reply
Natko, please correct also the db files to something more meaningful like utchannels.db
Thank you.
Reply
@asik1 aready did that, now I am fixing this unicode issue.

The problem is that the old addon did not pay attention to encoding. The "youtube.channels" file seems to be in different encodings for different languages. For example: I have croatia characters and my coding is different from the arabic ones. One of the solutions is that you copy your file, open it in notepad, save it as utf-8 and then replace it . I'm now searching for another solution.

EDIT:
Okay, I might have fixed it. Try it, i pushed an update online.
If you still have issues, you have 2 options: ** but it should work immediately

1. Convert youtube.channels file to utf-8 in notepad or similar software and put it back in its place
2. If you know the coding your file uses, you can put it in the first place of this array, you can find it in default.py , line 74:

Code:
encodings = ['utf-8', 'windows-1250','windows-1251', ..... ]


Changelog v0.1.1:
Code:
v0.1.1 [18-6-2015]
-hopefully fixed unicode issues with import function
-fixed duplicate channels in same folders
-moved database to addon_data/plugin.video.ytchannels/youtube_channels.db
Reply
this unicode really make troubles because urlencode doesn't support unicode... And I get error all the time, I am really tired of this, doing it for 4 hours and I hope I fixed something and that I didn't break anything Big Grin

Let me know when you face some issues again
Reply
the plugin has script failed error today (06/18/2015).
Reply
  • 1
  • 5
  • 6
  • 7(current)
  • 8
  • 9
  • 14

Logout Mark Read Team Forum Stats Members Help
[RELEASE] YouTube Channels (Video Plugin) Addon1