{"action":"created","issue":{"url":"https://api.github.com/repos/ddurdle/Python-GoogleDrive-VideoStream/issues/52","repository_url":"https://api.github.com/repos/ddurdle/Python-GoogleDrive-VideoStream","labels_url":"https://api.github.com/repos/ddurdle/Python-GoogleDrive-VideoStream/issues/52/labels{/name}","comments_url":"https://api.github.com/repos/ddurdle/Python-GoogleDrive-VideoStream/issues/52/comments","events_url":"https://api.github.com/repos/ddurdle/Python-GoogleDrive-VideoStream/issues/52/events","html_url":"https://github.com/ddurdle/Python-GoogleDrive-VideoStream/issues/52","id":318359337,"node_id":"MDU6SXNzdWUzMTgzNTkzMzc=","number":52,"title":"strm creation fails or is inconsistent ","user":{"login":"Dec64","id":5571886,"node_id":"MDQ6VXNlcjU1NzE4ODY=","avatar_url":"https://avatars0.githubusercontent.com/u/5571886?v=4","gravatar_id":"","url":"https://api.github.com/users/Dec64","html_url":"https://github.com/Dec64","followers_url":"https://api.github.com/users/Dec64/followers","following_url":"https://api.github.com/users/Dec64/following{/other_user}","gists_url":"https://api.github.com/users/Dec64/gists{/gist_id}","starred_url":"https://api.github.com/users/Dec64/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Dec64/subscriptions","organizations_url":"https://api.github.com/users/Dec64/orgs","repos_url":"https://api.github.com/users/Dec64/repos","events_url":"https://api.github.com/users/Dec64/events{/privacy}","received_events_url":"https://api.github.com/users/Dec64/received_events","type":"User","site_admin":false},"labels":[{"id":783065571,"node_id":"MDU6TGFiZWw3ODMwNjU1NzE=","url":"https://api.github.com/repos/ddurdle/Python-GoogleDrive-VideoStream/labels/investigating","name":"investigating","color":"4f54f7","default":false}],"state":"open","locked":false,"assignee":{"login":"ddurdle","id":851508,"node_id":"MDQ6VXNlcjg1MTUwOA==","avatar_url":"https://avatars0.githubusercontent.com/u/851508?v=4","gravatar_id":"","url":"https://api.github.com/users/ddurdle","html_url":"https://github.com/ddurdle","followers_url":"https://api.github.com/users/ddurdle/followers","following_url":"https://api.github.com/users/ddurdle/following{/other_user}","gists_url":"https://api.github.com/users/ddurdle/gists{/gist_id}","starred_url":"https://api.github.com/users/ddurdle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ddurdle/subscriptions","organizations_url":"https://api.github.com/users/ddurdle/orgs","repos_url":"https://api.github.com/users/ddurdle/repos","events_url":"https://api.github.com/users/ddurdle/events{/privacy}","received_events_url":"https://api.github.com/users/ddurdle/received_events","type":"User","site_admin":false},"assignees":[{"login":"ddurdle","id":851508,"node_id":"MDQ6VXNlcjg1MTUwOA==","avatar_url":"https://avatars0.githubusercontent.com/u/851508?v=4","gravatar_id":"","url":"https://api.github.com/users/ddurdle","html_url":"https://github.com/ddurdle","followers_url":"https://api.github.com/users/ddurdle/followers","following_url":"https://api.github.com/users/ddurdle/following{/other_user}","gists_url":"https://api.github.com/users/ddurdle/gists{/gist_id}","starred_url":"https://api.github.com/users/ddurdle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ddurdle/subscriptions","organizations_url":"https://api.github.com/users/ddurdle/orgs","repos_url":"https://api.github.com/users/ddurdle/repos","events_url":"https://api.github.com/users/ddurdle/events{/privacy}","received_events_url":"https://api.github.com/users/ddurdle/received_events","type":"User","site_admin":false}],"milestone":null,"comments":7,"created_at":"2018-04-27T10:32:54Z","updated_at":"2018-08-04T00:25:41Z","closed_at":null,"author_association":"NONE","body":"I have a large library in sections. E.g. Movies, Movies-4k, Movies-Kids. I want to keep them seperate. If I turn off the option for the script to create movies/tv/music/other and leave both boxes ticked to create original strms and google transcode strms. Then it will only create the orginal strms, no google transcode strms at all.\r\n\r\nsecond issue seems to be that it does not find all my media, or seems to hang/stop for no reason and even if you re-try it will not find the other media.\r\n\r\nJust tried to scan my movie folder and got the following error.\r\n\r\n```----------------------------------------\r\nException happened during processing of request from ('92.40.248.129', 44584)\r\nTraceback (most recent call last):\r\n  File \"/usr/lib/python2.7/SocketServer.py\", line 596, in process_request_thread\r\n    self.finish_request(request, client_address)\r\n  File \"/usr/lib/python2.7/SocketServer.py\", line 331, in finish_request\r\n    self.RequestHandlerClass(request, client_address, self)\r\n  File \"/usr/lib/python2.7/SocketServer.py\", line 652, in __init__\r\n    self.handle()\r\n  File \"/usr/lib/python2.7/BaseHTTPServer.py\", line 340, in handle\r\n    self.handle_one_request()\r\n  File \"/usr/lib/python2.7/BaseHTTPServer.py\", line 328, in handle_one_request\r\n    method()\r\n  File \"/root/Python-GoogleDrive-VideoStream/resources/libgui/webgui.py\", line 1076, in do_GET\r\n    mediaEngine.run(self,query, DBM=self.server.dbm, addon=self.server.addon, host=host)\r\n  File \"/root/Python-GoogleDrive-VideoStream/resources/lib/engine.py\", line 1066, in run\r\n    (newcount,changeToken) = service.buildSTRM(self.plugin_handle, path,folderID, contentType=contentType, pDialog=pDialog, epath=encryptedPath, dpath=dencryptedPath, encfs=encfs, catalog=catalog, fetchChangeID=changeTracking, resolution=resolution, force=force, host=hostTemp,LOGGING=LOGGING, changeTracking=changeTracking, changeToken=changeToken,  skip0Res=skip0Res, original=original, transcode=transcode, append=append,removeExt=removeExt)\r\n  File \"/root/Python-GoogleDrive-VideoStream/resources/lib/cloudservice.py\", line 180, in buildSTRM\r\n    (newcount,nothing) = self.buildSTRM(plugin_handle,path + '/'+str(item.folder.title), item.folder.id, pDialog=pDialog, spreadsheetFile=spreadsheetFile, catalog=catalog, musicPath=musicPath, moviePath=moviePath,tvPath=tvPath,videoPath=videoPath, resolution=resolution, LOGGING=LOGGING, host=host, skip0Res=skip0Res, original=original, transcode=transcode, append=append, removeExt=removeExt)\r\n  File \"/root/Python-GoogleDrive-VideoStream/resources/lib/cloudservice.py\", line 170, in buildSTRM\r\n    mediaItems = self.getMediaList(folderID,contentType=contentType)\r\n  File \"/root/Python-GoogleDrive-VideoStream/resources/lib/gdrive_api2.py\", line 449, in getMediaList\r\n    if e.code == 403 or e.code == 401:\r\nAttributeError: 'URLError' object has no attribute 'code'\r\n----------------------------------------```"},"comment":{"url":"https://api.github.com/repos/ddurdle/Python-GoogleDrive-VideoStream/issues/comments/410407174","html_url":"https://github.com/ddurdle/Python-GoogleDrive-VideoStream/issues/52#issuecomment-410407174","issue_url":"https://api.github.com/repos/ddurdle/Python-GoogleDrive-VideoStream/issues/52","id":410407174,"node_id":"MDEyOklzc3VlQ29tbWVudDQxMDQwNzE3NA==","user":{"login":"ddurdle","id":851508,"node_id":"MDQ6VXNlcjg1MTUwOA==","avatar_url":"https://avatars0.githubusercontent.com/u/851508?v=4","gravatar_id":"","url":"https://api.github.com/users/ddurdle","html_url":"https://github.com/ddurdle","followers_url":"https://api.github.com/users/ddurdle/followers","following_url":"https://api.github.com/users/ddurdle/following{/other_user}","gists_url":"https://api.github.com/users/ddurdle/gists{/gist_id}","starred_url":"https://api.github.com/users/ddurdle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ddurdle/subscriptions","organizations_url":"https://api.github.com/users/ddurdle/orgs","repos_url":"https://api.github.com/users/ddurdle/repos","events_url":"https://api.github.com/users/ddurdle/events{/privacy}","received_events_url":"https://api.github.com/users/ddurdle/received_events","type":"User","site_admin":false},"created_at":"2018-08-04T00:25:41Z","updated_at":"2018-08-04T00:25:41Z","author_association":"OWNER","body":"script is here: https://github.com/ddurdle/GoogleDrive-VideoStream_extra\r\n\r\nThere are a bunch of various helper scripts.  The one for overriding the transcode is stored in the transcoding directory.\r\n\r\nYou just need to update the port (if you change it from 9988), then this script will intercept the calls to the plugin.\r\n\r\nYou swap it in place by renaming the originals to .oem which are called by this wrapper script.  You don't need to override the ffprobe, I'm overriding it to filter out embedded subtitles since they don't work well.\r\n\r\ncd  /opt/emby-server/bin\r\nsudo mv ffmpeg ffmpeg.oem\r\nsudo mv ffprobe ffprobe.oem\r\nsudo ln -sf /u01/GoogleDrive-VideoStream_extra/transcoders/emby_ffmpeg.pl ffmpeg\r\nsudo ln -sf /u01/GoogleDrive-VideoStream_extra/transcoders/emby_ffprobe.pl ffprobe\r\n"}}
{"actor":{"display_login":"ddurdle"}}