Release gdrive - Google Drive Video/Music Add-on
(2016-03-11, 14:23)dmdsoftware Wrote:
(2016-03-11, 09:23)dabinn Wrote:
(2016-03-11, 05:35)dmdsoftware Wrote: These fixes In v0.7.45
http://dmdsoftware.net/repository.ddurdl...0.7.45.zip

v0.7.45 (2016-03-10)
- fix search error when CLOUD_DB is enabled
- add support for subtitles .ass and .ssa
- add mkv and rmvb extension mapping in unknown file situation
v0.7.44 (2016-03-09)
- fix for playback of offline file
v0.7.43 (2016-03-08)
- CLOUD_DB: load data during listings (resume + play count)
- CLOUD_DB: fix resume points
- CLOUD_DB: STRM resume points
- CLOUD_DB: updated add to queue
- drop Brazil language file

Hi,
Something is wrong with .ass subtitle in v0.7.45.
Click on a video, after the 'Choose a stream' dialog, screen stopped at 'Bufering... 100%' for several minutes. (KODI was not freeze, but it will crash if I hit stop button at this moment)
I also test video files with idx/sub subtitle, same situation. Only srt subtitle is OK.

If I know how to print/output debug message from the python code, I may able to help debugging this.


--
Update:
I still don't know why xbmc.log('debug string', xbmc.LOGERROR) did not update my kodi.log.
Finally I have setup the pydev debugger, and will try to trace the subtitle issue.

To activate the debugger, you can add the following two lines to your settings.xml

<setting id="remote_debugger" value="true" />
<setting id="remote_debugger_host" value="localhost" />

Hi,
I am still testing and tracing the code, some foundings here:
* The sub/ass loading freeze issue
I fount this is not cause by ass file type, but the amount of subtitle files in the same directory.
In function cache.setSRT(), file title did not pass to service.getSRT(). So that the service.getSRT() always returns all the subtitle file, no mater their filename matches the video file or not. (Is this by design?)
If cachePath was not set, each subttile file url will cause a 10 second timeout(approx.) to load.
(each generate an error message like :
14:22:30 T:7224 ERROR: CCurlFile::Stat - Failed: Timeout was reached(28) for https://doc-14-c4-docs.googleusercontent...34rgexxxxx...)
For example, a directory with TV series EP01~15, there will be 15 subtitles read, and takes 150 seconds waiting timeout.

* Wrong subtitle
When I test with cachePath set, wrong subtitle is displayed when playing TV series.

* Chinese subtitle filename massed up
In default.py, after 'files = cache.getSRT(service)'
file = file.decode('unicode-escape')
file = file.encode('utf-8')
These causes Chinese subtitle filename unable to load.


-------------
Update:
I have successfully fixed the subtitle issue by passing the title string to service.getSRT() and querying "title contains 'xxxx'" in google api.
All subtitles are displayed correctly, but I need more test to ensure there is no side effect.

I don't know how to commit code, so I paste the code I modified here:
In default.py:
Code:
cache.setSRT(service, title)
In cache.py
Code:
def setSRT(self, service, title):
....
srt = service.getSRT(title, self.package.folder.id)
...
srt = service.getSRT(title, self.package.folder.id)

In gdrive_api2.py
Code:
def getSRT(self, title, folderid):
...
        q='';
        # search in directory
        if folderid != False:
            q = q + "'"+str(folderid)+"' in parents"

        # search for title
        if title != False:
            title = os.path.splitext(title)[0]
            encodedTitle = re.sub(' ', '+', title)
            if q!='':
                q = q+" and "
            q = q + "title contains '"+title+"'"

        url = url + "?" + urllib.urlencode({'q':q})
Reply


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