Browse Source

Tweak reward code for NL ISOs

spaghetti 8 years ago
parent
commit
4c0a1d57bc
1 changed files with 3 additions and 3 deletions
  1. 3
    3
      sections/upload/upload_handle.php

+ 3
- 3
sections/upload/upload_handle.php View File

559
 }
559
 }
560
 
560
 
561
 // movie and anime ISOs are neutral leech, and receive a BP bounty
561
 // movie and anime ISOs are neutral leech, and receive a BP bounty
562
-if (($Type == "Movies" || $Type == "Anime") && $T['Container'] == "'ISO'") {
562
+if (($Type == "Movies" || $Type == "Anime") && ($T['Container'] == "'ISO'" || $T['Container'] == "'M2TS'" || $T['Container'] == "'VOB IFO'")) {
563
   $T['FreeTorrent'] = 2;
563
   $T['FreeTorrent'] = 2;
564
   $T['FreeLeechType'] = 2;
564
   $T['FreeLeechType'] = 2;
565
 }
565
 }
586
 $Cache->cache_value("torrent_{$TorrentID}_lock", true, 600);
586
 $Cache->cache_value("torrent_{$TorrentID}_lock", true, 600);
587
 
587
 
588
 //give BP if necessary
588
 //give BP if necessary
589
-if (($Type == "Movies" || $Type == "Anime") && $T['Container'] == "'ISO'") {
590
-  $BPAmt = 2*($TotalSize / (1024*1024*1024))*1000;
589
+if (($Type == "Movies" || $Type == "Anime") && ($T['Container'] == "'ISO'" || $T['Container'] == "'M2TS'" || $T['Container'] == "'VOB IFO'")) {
590
+  $BPAmt = (int) 2*($TotalSize / (1024*1024*1024))*1000;
591
 
591
 
592
   $DB->query("
592
   $DB->query("
593
     UPDATE users_main
593
     UPDATE users_main

Loading…
Cancel
Save