Class PlatformTorrentUtils
java.lang.Object
com.biglybt.core.torrent.PlatformTorrentUtils
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final booleanprivate static booleanprivate static final ArrayList<HasBeenOpenedListener> private static final Mapprivate static final longprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidstatic voidaddPlatformHost(String host) static booleanstatic StringgetContentAuthor(TOTorrent torrent) static StringgetContentDescription(TOTorrent torrent) static longgetContentDurationMillis(TOTorrent torrent) static StringgetContentHash(TOTorrent torrent) static MapgetContentMap(TOTorrent torrent) private static longgetContentMapLong(TOTorrent torrent, String key, long def) static MapgetContentMapMap(TOTorrent torrent, String key) static StringgetContentMapString(TOTorrent torrent, String key) static longgetContentMinimumSpeedBps(TOTorrent torrent) static intgetContentPrimaryFileIndex(TOTorrent torrent) static StringgetContentPublisher(TOTorrent torrent) static longgetContentStreamSpeedBps(TOTorrent torrent) static byte[]getContentThumbnail(TOTorrent torrent) static StringgetContentThumbnailType(TOTorrent torrent) static StringgetContentThumbnailUrl(TOTorrent torrent) static StringgetContentTitle(TOTorrent torrent) static Stringstatic StringgetContentType(TOTorrent torrent) static StringgetContentURL(TOTorrent torrent) static intgetContentVersion(TOTorrent torrent) private static longgetContentVideoHeight(TOTorrent torrent) static int[]getContentVideoResolution(TOTorrent torrent) static longgetContentVideoRunningTime(TOTorrent torrent) private static longgetContentVideoWidth(TOTorrent torrent) static longgetExpiresOn(TOTorrent torrent) static booleanstatic longgetQOSClass(TOTorrent torrent) (package private) static MapgetTempContentMap(TOTorrent torrent) private static voidincVersion(Map mapContent) static booleanstatic booleanisContentProgressive(TOTorrent torrent) static booleanisFeaturedContent(TOTorrent torrent) static booleanisPlatformHost(String host) static booleanisPlatformTracker(TOTorrent torrent) static voidstatic voidprivate static voidputOrRemove(Map map, String key, Object obj) static voidstatic voidsetContentDescription(TOTorrent torrent, String desc) static voidsetContentDurationMillis(TOTorrent torrent, long millis) private static voidsetContentMapLong(TOTorrent torrent, String key, long value) static voidsetContentMapMap(TOTorrent torrent, String key, Map value) private static voidsetContentMapString(TOTorrent torrent, String key, String value) static voidsetContentPrimaryFileIndex(TOTorrent torrent, int index) static voidsetContentThumbnail(TOTorrent torrent, byte[] thumbnail) static voidsetContentThumbnail(TOTorrent torrent, byte[] thumbnail, String type) static voidsetContentThumbnailUrl(TOTorrent torrent, String url) static voidsetContentTitle(TOTorrent torrent, String title) static voidsetContentType(TOTorrent torrent, String title) static voidsetHasBeenOpened(DownloadManager dm, boolean opened) static voidsetHasBeenOpened(DownloadManager dm, int file_index, boolean opened) static voidsetQOSClass(TOTorrent torrent, long cla) private static voidwriteTorrentIfExists(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
-
embeddedPlayerAvail
public static boolean embeddedPlayerAvail() -
getContentTitle2
- Since:
- 3.0.4.3
-
setHasBeenOpened
-
setHasBeenOpened
-
getHasBeenOpened
-
addHasBeenOpenedListener
-
removeHasBeenOpenedListener
-
getContentVersion
-
getContentThumbnailType
-
incVersion
-
setContentThumbnail
-