예제 #1
0
파일: defaulft.py 프로젝트: smplgd/repo
                dialoge.PopupWindow(tutWin)
            if guiTools.selectDialog(
                    selectAction, header='Title for Folder and MediaList entry'
            ) == 1 or name == None or name == "":
                name = guiTools.editDialog(
                    name).lstrip().rstrip() + "++RenamedTitle++"

            if not fileSys.writeTutList("select:ContentTypeLang"):
                tutWin = [
                    "Adding content to your library",
                    "Now select your content type. ",
                    "Select language or YouTube type  ",
                    "Wait for done message."
                ]
                dialoge.PopupWindow(tutWin)
            cType = guiTools.getType(url)

            fileSys.writeMediaList(url, name, cType)
            dialog.notification(cType, name.replace('++RenamedTitle++', ''),
                                xbmcgui.NOTIFICATION_INFO, 5000, False)
            create.fillPluginItems(url,
                                   strm=True,
                                   strm_name=name,
                                   strm_type=cType)
            dialog.notification('Writing items...', "Done",
                                xbmcgui.NOTIFICATION_INFO, 5000, False)
        except IOError as (errno, strerror):
            print("I/O error({0}): {1}").format(errno, strerror)
        except ValueError:
            print("No valid integer in line.")
        except:
예제 #2
0
파일: default.py 프로젝트: kodinerds/repo
            if xbmc.getInfoLabel("VideoPlayer.TVShowTitle") != "":
                guiTools.markSeries(xbmc.getInfoLabel("VideoPlayer.TVShowTitle"),xbmc.getInfoLabel("VideoPlayer.Episode"),xbmc.getInfoLabel("VideoPlayer.Season"))
            else:
                guiTools.markMovie(xbmc.getInfoLabel("VideoPlayer.Title"))
        except:
            pass 
    elif mode == 100:
        create.fillPlugins(url)
        try:
            xbmcplugin.endOfDirectory(int(sys.argv[1]))
        except:
            pass 
    elif mode == 101:
        create.fillPluginItems(url)
        try:
            xbmcplugin.endOfDirectory(int(sys.argv[1]))
        except:
            pass 
        
    elif mode == 200:
        utils.addon_log("write multi strms")
        cType = guiTools.getType(url)
        fileSys.writeMediaList(url, name, cType)
        dialog.notification(cType, name, xbmcgui.NOTIFICATION_INFO, 5000, False) 
        create.fillPluginItems(url, strm=True, strm_name=name, strm_type=cType)
        dialog.notification('Writing items...', "Done", xbmcgui.NOTIFICATION_INFO, 5000, False)    
    elif mode == 201:
        utils.addon_log("write single strm")
        # create.fillPluginItems(url)
        # makeSTRM(name, name, url)