From 6172180c95695cae84e71484b4c60af4166ebf89 Mon Sep 17 00:00:00 2001 From: RaNaN Date: Sun, 21 Jul 2013 21:42:43 +0200 Subject: guess media types by name --- pyload/remote/apitypes.py | 1 + pyload/remote/apitypes_debug.py | 2 +- pyload/remote/create_apitypes.py | 2 +- pyload/remote/pyload.thrift | 1 + 4 files changed, 4 insertions(+), 2 deletions(-) (limited to 'pyload/remote') diff --git a/pyload/remote/apitypes.py b/pyload/remote/apitypes.py index 6cf7529fd..0d9e35963 100644 --- a/pyload/remote/apitypes.py +++ b/pyload/remote/apitypes.py @@ -74,6 +74,7 @@ class MediaType: Video = 8 Document = 16 Archive = 32 + Executable = 64 class PackageStatus: Ok = 0 diff --git a/pyload/remote/apitypes_debug.py b/pyload/remote/apitypes_debug.py index 7c62a6277..0d04a8225 100644 --- a/pyload/remote/apitypes_debug.py +++ b/pyload/remote/apitypes_debug.py @@ -3,7 +3,7 @@ # Autogenerated by pyload # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING -from ttypes import * +from apitypes import * enums = [ "DownloadState", diff --git a/pyload/remote/create_apitypes.py b/pyload/remote/create_apitypes.py index d596f07ac..61063fa3b 100644 --- a/pyload/remote/create_apitypes.py +++ b/pyload/remote/create_apitypes.py @@ -95,7 +95,7 @@ class ExceptionObject(Exception): # -*- coding: utf-8 -*- # Autogenerated by pyload # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING\n -from ttypes import *\n +from apitypes import *\n """) dev.write("enums = [\n") diff --git a/pyload/remote/pyload.thrift b/pyload/remote/pyload.thrift index 309c972cd..9f2cfc8ee 100644 --- a/pyload/remote/pyload.thrift +++ b/pyload/remote/pyload.thrift @@ -50,6 +50,7 @@ enum MediaType { Video = 8, Document = 16, Archive = 32, + Executable = 64 } enum FileStatus { -- cgit v1.2.3