Release gdrive - Google Drive Video/Music Add-on
(2017-07-27, 14:00)dmdsoftware Wrote:
(2017-07-27, 13:53)dabinn Wrote: Hi,
Does anyone here encounter an issue that subtitle didn't loaded with the video? It happened to me recently, and everytime it happened, the video needs to be re-open many times to make the subtitle show up. I also heard of 2 friends have the same issue.

Newer versions of the plugin reduce the timer between starting video and playback of video. That affects the subtitles success on loading. It was another user's ask in order to make subtitles work on 17.3 . It also makes videos playback faster.

Provide details on version of plugin, version of kodi, etc, if you want further assistance.     
KODI v17(auto-update), lastest gdrive-addon 0.8.66/0.8.52 both tested
I have the subtitle issue for over 1 year, it seems to begin with KODI 17 (about May 2017~June 2017), thought ddurdle has a fix for it on 0.8.38, but it still work not well now.
I wrote a Chinese gdrive-addon tutorial on my blog before, some people replied that article saying they also have issue with subtitle from June 2017.
I installed KODI+gdrive-addon on many units, include 2 Window 10 PCs, 3 Android TVs (Nvidia Shield, Sony Bravia, Xiaomi Mi box), Android Phones. All of them have following issue:
* The external subtitle file (srt, ass..ect) has about 80% change not loading at first time.
* If I stop the video, and play it again, the subtile is 100% chance to load  (I have turn on offline SRT setting)
* If I play the video to the end, the subtitle of next auto-played video is 100% chance to load.
* If I click the 'Next' button, or press the 'Next' button on the remote controller, the subtitle of next video 100% NOT loaded.
* If I open the playlist interface while playing, select another file to play, the subtitle also NEVER loaded.
Beside the common issue, there are some difference between the units:
* Windows PC seems have slightly higher chance to load subtitle successfully. (not sure)
* My current using android phone has belowe 10% change to load a subtitle, even for the 2nd time play and with offlien SRT(has confirm it was downloaded).

I am going to trace the code and try to figure out if there is a better solution. Any help would be greatly appreciated.
------------
Update:
After change from 3G network to WiFi, my android phone loads the subtitles much much better. (about 70% success, no mater with or without offline SRT )
It seems caused by different net speed (and loading speed).
I also checked patch 0.8.38, it seems not quite right:
default.py
            ## contribution by dabinn <--- This reminds me that I have sent a patch to fix 'next file' issue before (patch 0.7.47) :p
            # handle situation where playback is skipped to next file, wait for new source to load
            if player.isPlaying():
                xbmc.sleep(100)  <--- patch 0.8.38 changes this from 1000 to 100, may be the main cause that 'next file' does not load subtitle again.

            # load captions
            if  (settings.srt or settings.cc) and service.protocol == 2:
                while not (player.isPlaying()):
                    xbmc.sleep(1000) <------ patch 0.8.38 does not change this, so that waiting time not really reduced as expect.

                files = cache.getSRT(service)
                for file in files:
                    if file != '':
                        try:
                            #file = file.decode('unicode-escape')
                            file = file.encode('utf-8')
                        except:
                            pass
                        player.setSubtitles(file)

            xbmc.sleep(100) <------------ patch 0.8.38 add 0.1 second sleep here, the waiting time becomes a little longer than before.
---------
I'll try to do more playback test with different waiting time and different network condition.
Reply


Messages In This Thread
u - by Kraevin - 2015-05-13, 17:37
RE: [RELEASE] gdrive - Google Drive Video/Music Add-on - by dabinn - 2018-11-21, 11:40
Logout Mark Read Team Forum Stats Members Help
gdrive - Google Drive Video/Music Add-on12