Class PlatformTorrentUtils

java.lang.Object
com.biglybt.core.torrent.PlatformTorrentUtils

public class PlatformTorrentUtils extends Object
  • Field Details

  • Constructor Details

    • PlatformTorrentUtils

      public PlatformTorrentUtils()
  • Method Details

    • getContentMap

      public static Map getContentMap(TOTorrent torrent)
    • getTempContentMap

      static Map getTempContentMap(TOTorrent torrent)
    • getContentMapString

      public static String getContentMapString(TOTorrent torrent, String key)
    • setContentMapString

      private static void setContentMapString(TOTorrent torrent, String key, String value)
    • getContentMapLong

      private static long getContentMapLong(TOTorrent torrent, String key, long def)
    • getContentMapMap

      public static Map getContentMapMap(TOTorrent torrent, String key)
    • setContentMapLong

      private static void setContentMapLong(TOTorrent torrent, String key, long value)
    • setContentMapMap

      public static void setContentMapMap(TOTorrent torrent, String key, Map value)
    • getContentHash

      public static String getContentHash(TOTorrent torrent)
    • getContentTitle

      public static String getContentTitle(TOTorrent torrent)
    • setContentTitle

      public static void setContentTitle(TOTorrent torrent, String title)
    • getContentDescription

      public static String getContentDescription(TOTorrent torrent)
    • setContentDescription

      public static void setContentDescription(TOTorrent torrent, String desc)
    • getContentType

      public static String getContentType(TOTorrent torrent)
    • setContentType

      public static void setContentType(TOTorrent torrent, String title)
    • getContentAuthor

      public static String getContentAuthor(TOTorrent torrent)
    • getContentPublisher

      public static String getContentPublisher(TOTorrent torrent)
    • getContentURL

      public static String getContentURL(TOTorrent torrent)
    • getQOSClass

      public static long getQOSClass(TOTorrent torrent)
    • setQOSClass

      public static void setQOSClass(TOTorrent torrent, long cla)
    • isFeaturedContent

      public static boolean isFeaturedContent(TOTorrent torrent)
    • putOrRemove

      private static void putOrRemove(Map map, String key, Object obj)
    • writeTorrentIfExists

      private static void writeTorrentIfExists(TOTorrent torrent)
    • getContentThumbnail

      public static byte[] getContentThumbnail(TOTorrent torrent)
    • getContentThumbnailUrl

      public static String getContentThumbnailUrl(TOTorrent torrent)
    • setContentThumbnailUrl

      public static void setContentThumbnailUrl(TOTorrent torrent, String url)
    • setContentThumbnail

      public static void setContentThumbnail(TOTorrent torrent, byte[] thumbnail)
    • getPlatformHosts

      public static List<String> getPlatformHosts()
    • addPlatformHost

      public static void addPlatformHost(String host)
    • isPlatformHost

      public static boolean isPlatformHost(String host)
    • isPlatformTracker

      public static boolean isPlatformTracker(TOTorrent torrent)
    • isAdvancedViewOnly

      public static boolean isAdvancedViewOnly(DownloadManager dm)
    • isContentProgressive

      public static boolean isContentProgressive(TOTorrent torrent)
    • getContentStreamSpeedBps

      public static long getContentStreamSpeedBps(TOTorrent torrent)
    • getContentMinimumSpeedBps

      public static long getContentMinimumSpeedBps(TOTorrent torrent)
    • getExpiresOn

      public static long getExpiresOn(TOTorrent torrent)
    • getContentPrimaryFileIndex

      public static int getContentPrimaryFileIndex(TOTorrent torrent)
    • setContentPrimaryFileIndex

      public static void setContentPrimaryFileIndex(TOTorrent torrent, int index)
    • getContentVideoWidth

      private static long getContentVideoWidth(TOTorrent torrent)
    • getContentVideoHeight

      private static long getContentVideoHeight(TOTorrent torrent)
    • getContentVideoRunningTime

      public static long getContentVideoRunningTime(TOTorrent torrent)
    • getContentDurationMillis

      public static long getContentDurationMillis(TOTorrent torrent)
    • setContentDurationMillis

      public static void setContentDurationMillis(TOTorrent torrent, long millis)
    • getContentVideoResolution

      public static int[] getContentVideoResolution(TOTorrent torrent)
    • log

      public static void log(String str)
    • log

      public static void log(TOTorrent torrent, String string)
      Parameters:
      torrent -
      string -
      Since:
      3.0.1.5
    • embeddedPlayerAvail

      public static boolean embeddedPlayerAvail()
    • getContentTitle2

      public static String getContentTitle2(DownloadManager dm)
      Since:
      3.0.4.3
    • setHasBeenOpened

      public static void setHasBeenOpened(DownloadManager dm, boolean opened)
    • setHasBeenOpened

      public static void setHasBeenOpened(DownloadManager dm, int file_index, boolean opened)
    • getHasBeenOpened

      public static boolean getHasBeenOpened(DownloadManager dm)
    • addHasBeenOpenedListener

      public static void addHasBeenOpenedListener(HasBeenOpenedListener l)
    • removeHasBeenOpenedListener

      public static void removeHasBeenOpenedListener(HasBeenOpenedListener listener)
    • getContentVersion

      public static int getContentVersion(TOTorrent torrent)
    • getContentThumbnailType

      public static String getContentThumbnailType(TOTorrent torrent)
    • incVersion

      private static void incVersion(Map mapContent)
    • setContentThumbnail

      public static void setContentThumbnail(TOTorrent torrent, byte[] thumbnail, String type)