示例#1
0
def display_name(magnet_uri):
    import urlparse
    from kodipopcorntime.utils import first
    magnet_args = urlparse.parse_qs(magnet_uri.replace("magnet:?", ""))
    return first(magnet_args.get("dn", []))
示例#2
0
 def get_studio():
     return (first(sorted(m("production_companies") or [], key=lambda x: x["id"])) or {}).get("name") or ""
示例#3
0
 def m_crew(job):
     return first([crew["name"] for crew in (m("credits", default={}).get("crew") or []) if crew["job"] == job])
示例#4
0
def display_name(magnet_uri):
    import urlparse
    from kodipopcorntime.utils import first
    magnet_args = urlparse.parse_qs(magnet_uri.replace("magnet:?", ""))
    return first(magnet_args.get("dn", []))
示例#5
0
 def get_studio():
     return (first(
         sorted(m("production_companies") or [], key=lambda x: x["id"]))
             or {}).get("name") or ""
示例#6
0
 def m_crew(job):
     return first([
         crew["name"]
         for crew in (m("credits", default={}).get("crew") or [])
         if crew["job"] == job
     ])