Browse Source

Fix BibTeX display on edited torrents

pjc 5 years ago
parent
commit
336b248fb8
2 changed files with 17 additions and 15 deletions
  1. 16
    14
      sections/torrents/details.php
  2. 1
    1
      sections/upload/upload_handle.php

+ 16
- 14
sections/torrents/details.php View File

@@ -737,31 +737,33 @@ foreach ($TorrentList as $Torrent) {
737 737
     if (!empty($Description)) {
738 738
         echo "\n<blockquote>".Text::full_format($Description).'</blockquote>';
739 739
     }
740
-    if (!empty($MediaInfo) && $MediaInfo === 'nil') { # Kludge
740
+    /*
741
+    if (!empty($MediaInfo) || $MediaInfo === 'nil') { # Kludge
741 742
         $parsed = MediaInfo::parse($MediaInfo);
742 743
         echo "\n<blockquote>";
743 744
         if (!empty($parsed)) {
744 745
             echo $parsed;
745 746
         } else {
746
-            ?>
747
+          */
748
+    echo "\n<blockquote>"; ?>
747 749
             <div class="spoilerContainer hideContainer">
748 750
               <?php
749 751
 # Make a filename
750 752
 $filename = "BioTorrents.de-$TorrentID";
751 753
 
752
-            # Make a BibTeX citation
753
-            $bibtex = "
754
+    # Make a BibTeX citation
755
+    $bibtex = "
754 756
 @misc{ $filename,";
755 757
 
756
-            foreach ($Artists as $Num => $Artist) {
757
-                $bibtex .= "\n  author  = {".Artists::display_artist($Artist)."},";
758
-            }
758
+    foreach ($Artists as $Num => $Artist) {
759
+        $bibtex .= "\n  author  = {".Artists::display_artist($Artist)."},";
760
+    }
759 761
 
760
-            if (!empty($GroupNameRJ)) {
761
-                $bibtex .= "\n  subtitle= {".$GroupNameRJ." ".$GroupNameJP."},";
762
-            }
762
+    if (!empty($GroupNameRJ)) {
763
+        $bibtex .= "\n  subtitle= {".$GroupNameRJ." ".$GroupNameJP."},";
764
+    }
763 765
   
764
-            $bibtex .= "
766
+    $bibtex .= "
765 767
   title   = {".$GroupName."},
766 768
   year    = {".$GroupYear."},
767 769
   url     = \href{https://biotorrents.de/torrents.php?torrentid=$TorrentID},
@@ -784,13 +786,13 @@ $filename = "BioTorrents.de-$TorrentID";
784 786
               </pre>
785 787
             </div>
786 788
             <?php
787
-        }
789
+        #}
788 790
         echo '</blockquote>';
789
-    } ?>
791
+} ?>
790 792
           </td>
791 793
         </tr>
792 794
         <?php
793
-} ?>
795
+#}?>
794 796
       </table>
795 797
     </div>
796 798
     <?php

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

@@ -543,7 +543,7 @@ if ($DB->has_results()) {
543 543
 
544 544
 // Torrents over a size in bytes are neutral leech
545 545
 // Download doesn't count, upload does
546
-if (($TotalSize > 53687091200)) { # 50 GiB
546
+if (($TotalSize > 10737418240)) { # 10 GiB
547 547
   $T['FreeTorrent'] = '2';
548 548
     $T['FreeLeechType'] = '2';
549 549
 }

Loading…
Cancel
Save