Ejemplo n.º 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", []))
Ejemplo n.º 2
0
 def get_studio():
     return (first(sorted(m("production_companies") or [], key=lambda x: x["id"])) or {}).get("name") or ""
Ejemplo n.º 3
0
 def m_crew(job):
     return first([crew["name"] for crew in (m("credits", default={}).get("crew") or []) if crew["job"] == job])
Ejemplo n.º 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", []))
Ejemplo n.º 5
0
 def get_studio():
     return (first(
         sorted(m("production_companies") or [], key=lambda x: x["id"]))
             or {}).get("name") or ""
Ejemplo n.º 6
0
 def m_crew(job):
     return first([
         crew["name"]
         for crew in (m("credits", default={}).get("crew") or [])
         if crew["job"] == job
     ])