Ivars 6 年之前
父節點
當前提交
eb74cc0a47
共有 4 個檔案被更改,包括 16 行新增17 行删除
  1. 9
    9
      file.py
  2. 5
    5
      project.wpr
  3. 1
    2
      sources/config.py
  4. 1
    1
      sources/viaplay.py

+ 9
- 9
file.py 查看文件

@@ -226,17 +226,17 @@ def encode(url):
226 226
 
227 227
 if __name__ == "__main__":
228 228
     res = join("aaa", "bbb")
229
-    #url = "smb://user:Kaskade7@192.168.77.197/hdd/test"
230
-    url = "ftp://user:Kaskade7@home.blue.lv:21/hdd/test"
231
-    url = "ftp://user:Kaskade7@192.168.77.197:21/hdd/test"
229
+    #url = "smb://user:xxxx@192.168.77.197/hdd/test"
230
+    url = "ftp://user:xxxx@home.blue.lv:21/hdd/test"
231
+    url = "ftp://user:xxxx@192.168.77.197:21/hdd/test"
232 232
 
233
-    mkdir("ftp://user:Kaskade7@192.168.77.197:21/hdd/movie/AAA")
234
-    res = listdir("ftp://user:Kaskade7@home.blue.lv/hdd/movie/")
233
+    mkdir("ftp://user:xxxx@192.168.77.197:21/hdd/movie/AAA")
234
+    res = listdir("ftp://user:xxxx@home.blue.lv/hdd/movie/")
235 235
     print res
236
-    rmdir("ftp://user:Kaskade7@192.168.77.197:21/hdd/movie/AAA")
237
-    rename("ftp://user:Kaskade7@192.168.77.197:21/hdd/test", "ftp://user:Kaskade7@192.168.77.197:21/hdd/test2")
238
-    remove("ftp://user:Kaskade7@192.168.77.197:21/hdd/test2")
239
-    e = isdir("ftp://user:Kaskade7@192.168.77.197:21/hdd/movies/TV2")
236
+    rmdir("ftp://user:xxxx@192.168.77.197:21/hdd/movie/AAA")
237
+    rename("ftp://user:xxxx@192.168.77.197:21/hdd/test", "ftp://user:xxxx@192.168.77.197:21/hdd/test2")
238
+    remove("ftp://user:xxxx@192.168.77.197:21/hdd/test2")
239
+    e = isdir("ftp://user:xxxx@192.168.77.197:21/hdd/movies/TV2")
240 240
     print e
241 241
 
242 242
     f = open(url, "wb")

+ 5
- 5
project.wpr 查看文件

@@ -33,7 +33,7 @@ proj.launch-config = {loc('ContentSources.py'): ('project',
33 33
         (u'https://walterebert.com/playground/video/hls/sintel-trailer.m3u8',
34 34
          '')),
35 35
                       loc('run.py'): ('project',
36
-                                      (u'config::home  ftp://user:Kaskade7@home.blue.lv/hdd/streams.cfg',
36
+                                      (u'config::home  ftp://user:xxxx@home.blue.lv/hdd/streams.cfg',
37 37
                                        '')),
38 38
                       loc('sources/lmt.py'): ('project',
39 39
         (u'home',
@@ -261,12 +261,12 @@ debug.recent-run-args = {loc('ContentSources.py'): [u'config::home streams_bernu
261 261
         u'--slud'],
262 262
                          loc('kivy_test.py'): [u'https://walterebert.com/playground/video/hls/sintel-trailer.m3u8',
263 263
         u'https://dl4.sanii.co/files/2/60e13omc1cpph2/video.mp4'],
264
-                         loc('run.py'): [u'config::home  ftp://user:Kaskade7@home.blue.lv/hdd/streams.cfg',
264
+                         loc('run.py'): [u'config::home  ftp://user:xxxx@home.blue.lv/hdd/streams.cfg',
265 265
         u'config::home sources\\cfg0\\streams_al.cfg',
266 266
         u'config::home ',
267
-        u'config::home  ftp://user:Kaskade7@home.blue.lv/hdd/streams_al.cfg',
268
-        u'config::home  ftps://user:Kaskade7@home.blue.lv/hdd/streams_al.cfg',
269
-        u'config::home  ftp://user:Kaskade7@home.blue.lv/hdd/streams_al.cfg2',
267
+        u'config::home  ftp://user:xxxx@home.blue.lv/hdd/streams_al.cfg',
268
+        u'config::home  ftps://user:xxxx@home.blue.lv/hdd/streams_al.cfg',
269
+        u'config::home  ftp://user:xxxx@home.blue.lv/hdd/streams_al.cfg2',
270 270
         u'config::home  ftp://home.blue.lv/hdd/streams_al.cfg',
271 271
         u'config::home  ',
272 272
         u'config::home  streams_bernu.cfg',

+ 1
- 2
sources/config.py 查看文件

@@ -164,8 +164,7 @@ class Source(SourceBase):
164 164
 
165 165
 if __name__ == "__main__":
166 166
 
167
-    source = Source(cfg_file="ftp://user:Kaskade7@home.blue.lv/hdd/streams.cfg")
168
-    #source = Source(cfg_file="streams.cfg")
167
+    source = Source(cfg_file="streams.cfg")
169 168
     source.read_streams()
170 169
     source.write_streams()
171 170
     import sys

+ 1
- 1
sources/viaplay.py 查看文件

@@ -100,7 +100,7 @@ Content-Type: application/x-www-form-urlencoded
100 100
         url = "https://viaplay.lv/tdi/login/nav/form?csrfToken=%s"%self.csrfToken
101 101
         #      https://viaplay.lv/tdi/login/nav/form?_infuse=1&_ts=1490554674901&csrfToken=
102 102
         params = "nav_redirectUri=https%3A%2F%2Fviaplay.lv%2F&nav_email={}&nav_password={}".format(urllib.quote(user),urllib.quote(password))
103
-        #         nav_redirectUri=https%3A%2F%2Fviaplay.lv%2F&nav_email=ivars777%40gmail.com&nav_password=kaskade7&nav_remember=true
103
+        #         nav_redirectUri=https%3A%2F%2Fviaplay.lv%2F&nav_email=ivars777%40gmail.com&nav_password=xxxx&nav_remember=true
104 104
         headers["Cookie"] = "ott_cookies_confirmed=1; PLAY_SESSION=%s;"%self.play_session
105 105
         if self.device:
106 106
             headers["Cookie"] += "ott_dids=%s"%self.device