- # * CREATE TORRENTS AND START SEEDING OF TRANSCODED VIDEOS
- self.seed(job['transcode_configs'])
-
- # Torrent files.
- files = [f for f in os.listdir(self.torrents_dir) \
- if os.path.isfile(os.path.join( \
- self.torrents_dir, f))]
- torrent_files = fnmatch.filter(files, name + "_*")
-
- # Thumbnail images files.
- files = [f for f in os.listdir(self.thumbs_dir) \
- if os.path.isfile(os.path.join( \
- self.thumbs_dir, f))]
- thumb_files = fnmatch.filter(files, name + "_*")
-
- # Raw video files.
- raw_files = [f for f in os.listdir(self.raw_videos_dir) \
- if os.path.isfile(os.path.join( \
- self.raw_videos_dir, f))]
-
- # * TRANSFER TORRENTS AND THUMBNAIL IMAGES OUT
- self.transfer_out(torrent_files, self.torrents_dir, \
- config.OUTPUT_TORRENTS_PATH)
- self.transfer_out(thumb_files, self.thumbs_dir, \
- config.OUTPUT_THUMBS_PATH)
-
- # * CLEANUP RAW VIDEOS AND THUMBNAIL IMAGES
- self.remove_files(raw_files, self.raw_videos_dir)
- self.remove_files(thumb_files, self.thumbs_dir)
+# # * CREATE TORRENTS AND START SEEDING OF TRANSCODED VIDEOS
+# self.seed(job['transcode_configs'])
+#
+# # Torrent files.
+# files = [f for f in os.listdir(self.torrents_dir) \
+# if os.path.isfile(os.path.join( \
+# self.torrents_dir, f))]
+# torrent_files = fnmatch.filter(files, name + "_*")
+#
+# # Thumbnail images files.
+# files = [f for f in os.listdir(self.thumbs_dir) \
+# if os.path.isfile(os.path.join( \
+# self.thumbs_dir, f))]
+# thumb_files = fnmatch.filter(files, name + "_*")
+#
+# # Raw video files.
+# raw_files = [f for f in os.listdir(self.raw_videos_dir) \
+# if os.path.isfile(os.path.join( \
+# self.raw_videos_dir, f))]
+#
+# # * TRANSFER TORRENTS AND THUMBNAIL IMAGES OUT
+# self.transfer_out(torrent_files, self.torrents_dir, \
+# config.OUTPUT_TORRENTS_PATH)
+# self.transfer_out(thumb_files, self.thumbs_dir, \
+# config.OUTPUT_THUMBS_PATH)
+#
+# # * CLEANUP RAW VIDEOS AND THUMBNAIL IMAGES
+# self.remove_files(raw_files, self.raw_videos_dir)
+# self.remove_files(thumb_files, self.thumbs_dir)