Revert "Merge pull request #1039 from MaddTheSane/patch-4"

This reverts commit c0c463d660, reversing
changes made to cd2587a435.
This commit is contained in:
Mitchell Livingston
2020-04-25 10:35:15 -04:00
parent f6030b1d79
commit 470ee010f2
7 changed files with 23 additions and 26 deletions

View File

@@ -45,7 +45,7 @@ OSStatus GeneratePreviewForURL(void *thisInterface, QLPreviewRequestRef preview,
//try to parse the torrent file
tr_info inf;
tr_ctor * ctor = tr_ctorNew(NULL);
tr_ctorSetMetainfoFromFile(ctor, [(__bridge NSURL *)url fileSystemRepresentation]);
tr_ctorSetMetainfoFromFile(ctor, [[(__bridge NSURL *)url path] UTF8String]);
const int err = tr_torrentParse(ctor, &inf);
tr_ctorFree(ctor);
if (err)