Пример #1
0
 def ascii_and_move(self):
     TEST = False
     if self.ismark:
         return
     name = vsu.name_ascii(self.namenoext, self.ext)
     p1 = self.path
     parent = os.path.dirname(p1)
     p2 = os.path.join(parent, name)
     if p1 != p2:
         ue.mezz("i will move", p1, "to", p2)
         if p1.lower() == p2.lower():
             self.move_with_tmp(p1, p2)
         else:
             try:
                 if not TEST:
                     self.move(p1, p2)
             except:
                 if not TEST:
                     self.move_with_tmp(p1, p2)
         return True
Пример #2
0
def get_title(url):
  url, name = urlsplit(url)
  title = vsu.getoutput("./youtube_dl.py -e --skip-download "+url)
  title = vsu.name_ascii(title)
  return title