Package com.biglybt.core.torrent
Class PlatformTorrentUtils
java.lang.Object
com.biglybt.core.torrent.PlatformTorrentUtils
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final boolean
private static boolean
private static final ArrayList
<HasBeenOpenedListener> private static final Map
private static final long
private static final String
private static final String
private static final String
private static final String
private static final String
private static final String
private static final String
private static final String
private static final String
private static final String
private static final String
private static final String
private static final String
private static final String
private static final String
private static final String
private static final String
private static final String
private static final String
private static final String
private static final String
private static final String
private static final String
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
static void
addPlatformHost
(String host) static boolean
static String
getContentAuthor
(TOTorrent torrent) static String
getContentDescription
(TOTorrent torrent) static long
getContentDurationMillis
(TOTorrent torrent) static String
getContentHash
(TOTorrent torrent) static Map
getContentMap
(TOTorrent torrent) private static long
getContentMapLong
(TOTorrent torrent, String key, long def) static Map
getContentMapMap
(TOTorrent torrent, String key) static String
getContentMapString
(TOTorrent torrent, String key) static long
getContentMinimumSpeedBps
(TOTorrent torrent) static int
getContentPrimaryFileIndex
(TOTorrent torrent) static String
getContentPublisher
(TOTorrent torrent) static long
getContentStreamSpeedBps
(TOTorrent torrent) static byte[]
getContentThumbnail
(TOTorrent torrent) static String
getContentThumbnailType
(TOTorrent torrent) static String
getContentThumbnailUrl
(TOTorrent torrent) static String
getContentTitle
(TOTorrent torrent) static String
static String
getContentType
(TOTorrent torrent) static String
getContentURL
(TOTorrent torrent) static int
getContentVersion
(TOTorrent torrent) private static long
getContentVideoHeight
(TOTorrent torrent) static int[]
getContentVideoResolution
(TOTorrent torrent) static long
getContentVideoRunningTime
(TOTorrent torrent) private static long
getContentVideoWidth
(TOTorrent torrent) static long
getExpiresOn
(TOTorrent torrent) static boolean
static long
getQOSClass
(TOTorrent torrent) (package private) static Map
getTempContentMap
(TOTorrent torrent) private static void
incVersion
(Map mapContent) static boolean
static boolean
isContentProgressive
(TOTorrent torrent) static boolean
isFeaturedContent
(TOTorrent torrent) static boolean
isPlatformHost
(String host) static boolean
isPlatformTracker
(TOTorrent torrent) static void
static void
private static void
putOrRemove
(Map map, String key, Object obj) static void
static void
setContentDescription
(TOTorrent torrent, String desc) static void
setContentDurationMillis
(TOTorrent torrent, long millis) private static void
setContentMapLong
(TOTorrent torrent, String key, long value) static void
setContentMapMap
(TOTorrent torrent, String key, Map value) private static void
setContentMapString
(TOTorrent torrent, String key, String value) static void
setContentPrimaryFileIndex
(TOTorrent torrent, int index) static void
setContentThumbnail
(TOTorrent torrent, byte[] thumbnail) static void
setContentThumbnail
(TOTorrent torrent, byte[] thumbnail, String type) static void
setContentThumbnailUrl
(TOTorrent torrent, String url) static void
setContentTitle
(TOTorrent torrent, String title) static void
setContentType
(TOTorrent torrent, String title) static void
setHasBeenOpened
(DownloadManager dm, boolean opened) static void
setHasBeenOpened
(DownloadManager dm, int file_index, boolean opened) static void
setQOSClass
(TOTorrent torrent, long cla) private static void
writeTorrentIfExists
(TOTorrent torrent)
-
Field Details
-
MIN_SPEED_DEFAULT
private static final long MIN_SPEED_DEFAULT- See Also:
-
DEBUG_CACHING
public static final boolean DEBUG_CACHING -
TOR_AZ_PROP_MAP
- See Also:
-
TOR_AZ_PROP_CVERSION
- See Also:
-
TOR_AZ_PROP_HASH
- See Also:
-
TOR_AZ_PROP_TITLE
- See Also:
-
TOR_AZ_PROP_DESCRIPTION
- See Also:
-
TOR_AZ_PROP_CONTENT_TYPE
- See Also:
-
TOR_AZ_PROP_AUTHOR
- See Also:
-
TOR_AZ_PROP_PUBLISHER
- See Also:
-
TOR_AZ_PROP_URL
- See Also:
-
TOR_AZ_PROP_THUMBNAIL
- See Also:
-
TOR_AZ_PROP_THUMBNAIL_URL
- See Also:
-
TOR_AZ_PROP_PROGRESSIVE
- See Also:
-
TOR_AZ_PROP_SPEED
- See Also:
-
TOR_AZ_PROP_MIN_SPEED
- See Also:
-
TOR_AZ_PROP_QOS_CLASS
- See Also:
-
TOR_AZ_PROP_EXPIRESON
- See Also:
-
TOR_AZ_PROP_PRIMARY_FILE
- See Also:
-
hasBeenOpenedListeners
-
TOR_AZ_PROP_VIDEO_WIDTH
- See Also:
-
TOR_AZ_PROP_VIDEO_HEIGHT
- See Also:
-
TOR_AZ_PROP_VIDEO_RUNNINGTIME
- See Also:
-
TOR_AZ_PROP_DURATION_MILLIS
- See Also:
-
TOR_AZ_PROP_OPENED
- See Also:
-
TOR_AZ_PROP_THUMBNAIL_TYPE
- See Also:
-
listPlatformHosts
-
mapPlatformTrackerTorrents
-
embeddedPlayerAvail
private static boolean embeddedPlayerAvail
-
-
Constructor Details
-
PlatformTorrentUtils
public PlatformTorrentUtils()
-
-
Method Details
-
getContentMap
-
getTempContentMap
-
getContentMapString
-
setContentMapString
-
getContentMapLong
-
getContentMapMap
-
setContentMapLong
-
setContentMapMap
-
getContentHash
-
getContentTitle
-
setContentTitle
-
getContentDescription
-
setContentDescription
-
getContentType
-
setContentType
-
getContentAuthor
-
getContentPublisher
-
getContentURL
-
getQOSClass
-
setQOSClass
-
isFeaturedContent
-
putOrRemove
-
writeTorrentIfExists
-
getContentThumbnail
-
getContentThumbnailUrl
-
setContentThumbnailUrl
-
setContentThumbnail
-
getPlatformHosts
-
addPlatformHost
-
isPlatformHost
-
isPlatformTracker
-
isAdvancedViewOnly
-
isContentProgressive
-
getContentStreamSpeedBps
-
getContentMinimumSpeedBps
-
getExpiresOn
-
getContentPrimaryFileIndex
-
setContentPrimaryFileIndex
-
getContentVideoWidth
-
getContentVideoHeight
-
getContentVideoRunningTime
-
getContentDurationMillis
-
setContentDurationMillis
-
getContentVideoResolution
-
log
-
log
- Parameters:
torrent
-string
-- Since:
- 3.0.1.5
-
embeddedPlayerAvail
public static boolean embeddedPlayerAvail() -
getContentTitle2
- Since:
- 3.0.4.3
-
setHasBeenOpened
-
setHasBeenOpened
-
getHasBeenOpened
-
addHasBeenOpenedListener
-
removeHasBeenOpenedListener
-
getContentVersion
-
getContentThumbnailType
-
incVersion
-
setContentThumbnail
-