ming пре 3 година
родитељ
комит
33564ca30c
1 измењених фајлова са 4 додато и 0 уклоњено
  1. 4 0
      OpenshotService/openshot_video_generator.py

+ 4 - 0
OpenshotService/openshot_video_generator.py

@@ -91,9 +91,13 @@ def myunichchar(unicode_char):
         return unicode_char
 
 def get_url_type(url):
+    print('---------------------------------------------')
+    
     req = urllib.request.Request(url, method='HEAD', headers={'User-Agent': 'Mozilla/5.0'})
     r = urllib.request.urlopen(req)
     contentType = r.getheader('Content-Type')
+    print(contentType)
+    print('-------------------------------------------------')
     return contentType
     
 def make_dir(name_hash):