- VIDEO_URL_MIME_TYPES: [
- 'video/mp4',
- 'video/webm',
- 'video/ogg',
- 'application/x-bittorrent',
- 'application/x-bittorrent;x-scheme-handler/magnet'
- ]
-}
-
-// ---------------------------------------------------------------------------
-
-// Number of points we add/remove from a friend after a successful/bad request
-const PODS_SCORE = {
- PENALTY: -10,
- BONUS: 10
-}
-
-// Time to wait between requests to the friends (10 min)
-let REQUESTS_INTERVAL = 600000
-
-// Number of requests in parallel we can make
-const REQUESTS_IN_PARALLEL = 10
-
-// To how many pods we send requests
-const REQUESTS_LIMIT_PODS = 10
-// How many requests we send to a pod per interval
-const REQUESTS_LIMIT_PER_POD = 5
-
-const REQUESTS_VIDEO_QADU_LIMIT_PODS = 10
-// The QADU requests are not big
-const REQUESTS_VIDEO_QADU_LIMIT_PER_POD = 50
-
-const REQUESTS_VIDEO_EVENT_LIMIT_PODS = 10
-// The EVENTS requests are not big
-const REQUESTS_VIDEO_EVENT_LIMIT_PER_POD = 50
-
-// Number of requests to retry for replay requests module
-const RETRY_REQUESTS = 5
-
-const REMOTE_SCHEME = {
- HTTP: 'https',
- WS: 'wss'
+ FETCH_PAGE_LIMIT: 100,
+ MAX_HTTP_ATTEMPT: 5,
+ URL_MIME_TYPES: {
+ VIDEO: [ 'video/mp4', 'video/webm', 'video/ogg' ], // TODO: Merge with VIDEO_MIMETYPE_EXT
+ TORRENT: [ 'application/x-bittorrent' ],
+ MAGNET: [ 'application/x-bittorrent;x-scheme-handler/magnet' ]
+ }