From 3e7dcf412481e7a55afe319f149da9fd24209c6c Mon Sep 17 00:00:00 2001 From: OdinGitDat Date: Sun, 1 Dec 2019 14:08:22 +0000 Subject: [PATCH] Update import_wm_media_folder.py Add torrent id print before file check in case that throws an error. Easier to find faulty torrent in question. --- WhatManager2/management/commands/import_wm_media_folder.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/WhatManager2/management/commands/import_wm_media_folder.py b/WhatManager2/management/commands/import_wm_media_folder.py index 4c4919e..4ca0dfd 100644 --- a/WhatManager2/management/commands/import_wm_media_folder.py +++ b/WhatManager2/management/commands/import_wm_media_folder.py @@ -187,7 +187,7 @@ def handle(self, *args, **options): self.subfolder_move('invalid_torrent', self.torrent_id) continue self.data_path = os.path.join(self.base_dir(), wm_unicode(self.torrent_info['info']['name'])) - print u'Checking to see if torrent is already loaded into WM..' + print u'Checking to see if torrent {} is already loaded into WM..'.format(self.torrent_id) masters = list(ReplicaSet.get_what_master().transinstance_set.all()) try: TransTorrent.objects.get(instance__in=masters, info_hash=self.info_hash)