Skip to content

Commit

Permalink
Add support for Xirvik rTorrent
Browse files Browse the repository at this point in the history
  • Loading branch information
Qata committed Nov 11, 2017
1 parent f0c5031 commit 2ca370f
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
2 changes: 2 additions & 0 deletions Sources/Connection Handler/TorrentJobChecker.m
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ - (void)jobCheckInvocation {
@autoreleasepool {
double t = clock();
NSMutableURLRequest *request = [TorrentDelegate.sharedInstance.currentlySelectedClient checkTorrentJobs];
NSLog(@"%@", request.URL.absoluteString);
NSLog(@"%@", request.allHTTPHeaderFields);
[request setTimeoutInterval:0x20];
if (request) {
//[NSURLRequest setAllowsAnyHTTPSCertificate:YES forHost:request.URL.host];
Expand Down
6 changes: 3 additions & 3 deletions Sources/Supporting Files/BarMagnet-Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>1.9.3</string>
<string>1.9.4</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleURLTypes</key>
Expand Down Expand Up @@ -67,6 +67,8 @@
<key>NSAllowsArbitraryLoads</key>
<true/>
</dict>
<key>NSCameraUsageDescription</key>
<string>We need to use the camera in order to scan QR codes</string>
<key>UIBackgroundModes</key>
<array>
<string>fetch</string>
Expand Down Expand Up @@ -130,7 +132,5 @@
</dict>
</dict>
</array>
<key>NSCameraUsageDescription</key>
<string>We need to use the camera in order to scan QR codes</string>
</dict>
</plist>
1 change: 0 additions & 1 deletion Sources/Torrent Interface/Front End/Xirvik_rTorrent.m
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ - (NSMutableURLRequest *)universalPOSTSetting {
[request setValue:@"gzip" forHTTPHeaderField:@"Accept-Encoding"];
[request setValue:@"Basic Og==" forHTTPHeaderField:@"Authorization"];
[request setValue:[[self getWebDataForKey:@"password"] orSome:@""] forHTTPHeaderField:@"X-QR-Auth"];
NSLog(@"%@", request.URL.absoluteString);
return request;
}

Expand Down
2 changes: 1 addition & 1 deletion Sources/View Controllers/XirvikQRCodeViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ @implementation XirvikQRCodeViewController

- (void)captureOutput:(AVCaptureOutput *)captureOutput didOutputMetadataObjects:(NSArray *)metadataObjects fromConnection:(AVCaptureConnection *)connection {
NSArray * elements = [[metadataObjects.firstObject stringValue] componentsSeparatedByString:@"\n"];
if (elements.count == 3 && [elements[1] isEqual:@"P"] && !self.dismissing) {
if (elements.count == 3 && !self.dismissing) {
self.dismissing = YES;
self.delegate.hostnameField.text = elements[0];
self.delegate.passwordField.text = elements[2];
Expand Down

0 comments on commit 2ca370f

Please sign in to comment.