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
     if (!empty($Description)) {
737
     if (!empty($Description)) {
738
         echo "\n<blockquote>".Text::full_format($Description).'</blockquote>';
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
         $parsed = MediaInfo::parse($MediaInfo);
742
         $parsed = MediaInfo::parse($MediaInfo);
742
         echo "\n<blockquote>";
743
         echo "\n<blockquote>";
743
         if (!empty($parsed)) {
744
         if (!empty($parsed)) {
744
             echo $parsed;
745
             echo $parsed;
745
         } else {
746
         } else {
746
-            ?>
747
+          */
748
+    echo "\n<blockquote>"; ?>
747
             <div class="spoilerContainer hideContainer">
749
             <div class="spoilerContainer hideContainer">
748
               <?php
750
               <?php
749
 # Make a filename
751
 # Make a filename
750
 $filename = "BioTorrents.de-$TorrentID";
752
 $filename = "BioTorrents.de-$TorrentID";
751
 
753
 
752
-            # Make a BibTeX citation
753
-            $bibtex = "
754
+    # Make a BibTeX citation
755
+    $bibtex = "
754
 @misc{ $filename,";
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
   title   = {".$GroupName."},
767
   title   = {".$GroupName."},
766
   year    = {".$GroupYear."},
768
   year    = {".$GroupYear."},
767
   url     = \href{https://biotorrents.de/torrents.php?torrentid=$TorrentID},
769
   url     = \href{https://biotorrents.de/torrents.php?torrentid=$TorrentID},
784
               </pre>
786
               </pre>
785
             </div>
787
             </div>
786
             <?php
788
             <?php
787
-        }
789
+        #}
788
         echo '</blockquote>';
790
         echo '</blockquote>';
789
-    } ?>
791
+} ?>
790
           </td>
792
           </td>
791
         </tr>
793
         </tr>
792
         <?php
794
         <?php
793
-} ?>
795
+#}?>
794
       </table>
796
       </table>
795
     </div>
797
     </div>
796
     <?php
798
     <?php

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

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

Loading…
Cancel
Save