Browse Source

Hide unused fields from torrent details

pjc 5 years ago
parent
commit
a0a4a3bb70
2 changed files with 11 additions and 1 deletions
  1. 6
    0
      classes/torrents.class.php
  2. 5
    1
      sections/torrents/details.php

+ 6
- 0
classes/torrents.class.php View File

@@ -653,9 +653,12 @@ class Torrents {
653 653
     if (!empty($Data['Resolution'])) {
654 654
       $Info[] = $Data['Resolution'];
655 655
     }
656
+    /*
656 657
     if (!empty($Data['AudioFormat'])) {
657 658
       $Info[] = $Data['AudioFormat'];
658 659
     }
660
+    */
661
+    /*
659 662
     if (!empty($Data['Language'])) {
660 663
       if (!empty($Data['Subber']) && isset($Data['CategoryID']) && ($Data['CategoryID'] == 3 || $Data['CategoryID'] == 4)) {
661 664
         $Info[] = $Data['Language']." (".$Data['Subber'].")";
@@ -663,6 +666,8 @@ class Torrents {
663 666
         $Info[] = $Data['Language'];
664 667
       }
665 668
     }
669
+    */
670
+    /*
666 671
     if (!empty($Data['Subbing'])) {
667 672
       if (!empty($Data['Subber'])) {
668 673
         if (isset($Data['CategoryID']) && ($Data['CategoryID'] == 2 || $Data['CategoryID'] == 1) && $Data['Subbing'] != "RAW") {
@@ -672,6 +677,7 @@ class Torrents {
672 677
         $Info[] = $Data['Subbing'];
673 678
       }
674 679
     }
680
+    */
675 681
     if (!empty($Data['Archive'])) {
676 682
       $Info[] = $Data['Archive'];
677 683
     }

+ 5
- 1
sections/torrents/details.php View File

@@ -453,7 +453,8 @@ foreach ($TorrentList as $Torrent) {
453 453
   if ($Container) { $ExtraInfo.=$AddExtra.display_str($Container); $AddExtra=' / '; }
454 454
   if ($Codec) { $ExtraInfo.=$AddExtra.display_str($Codec); $AddExtra=' / '; }
455 455
   if ($Resolution) { $ExtraInfo.=$AddExtra.display_str($Resolution); $AddExtra=' / '; }
456
-  if ($AudioFormat) { $ExtraInfo.=$AddExtra.display_str($AudioFormat); $AddExtra=' / '; }
456
+  #if ($AudioFormat) { $ExtraInfo.=$AddExtra.display_str($AudioFormat); $AddExtra=' / '; }
457
+  /*
457 458
   if ($Language) {
458 459
     if ($Subber && ($GroupCategoryID == 3 || $GroupCategoryID == 4)) {
459 460
       $ExtraInfo.=$AddExtra.display_str($Language.' ('.$Subber.')'); $AddExtra=' / ';
@@ -461,6 +462,8 @@ foreach ($TorrentList as $Torrent) {
461 462
       $ExtraInfo.=$AddExtra.display_str($Language); $AddExtra=' / ';
462 463
     }
463 464
   }
465
+  */
466
+  /*
464 467
   if ($Subbing) {
465 468
     if ($Subber) {
466 469
       if (($GroupCategoryID == 2 || $GroupCategoryID == 1) &&  $Subbing != "RAW") {
@@ -470,6 +473,7 @@ foreach ($TorrentList as $Torrent) {
470 473
       $ExtraInfo.=$AddExtra.display_str($Subbing); $AddExtra=' / ';
471 474
     }
472 475
   }
476
+  */
473 477
   if ($Archive) {
474 478
     $ExtraInfo .= $AddExtra.display_str($Archive); $AddExtra=' / ';
475 479
   }

Loading…
Cancel
Save