summaryrefslogtreecommitdiffstats
path: root/pyload/remote
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2013-07-21 21:42:43 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2013-07-21 21:42:43 +0200
commit6172180c95695cae84e71484b4c60af4166ebf89 (patch)
tree17f4d63cca0b8407bb556911929725532bcede26 /pyload/remote
parentReplace rule Hook -> Addon (diff)
downloadpyload-6172180c95695cae84e71484b4c60af4166ebf89.tar.xz
guess media types by name
Diffstat (limited to 'pyload/remote')
-rw-r--r--pyload/remote/apitypes.py1
-rw-r--r--pyload/remote/apitypes_debug.py2
-rw-r--r--pyload/remote/create_apitypes.py2
-rw-r--r--pyload/remote/pyload.thrift1
4 files changed, 4 insertions, 2 deletions
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 {