Constructor
new media(title, fileName, url, id, type, duration, rawLink)
Creates a new media object from scraped information
Parameters:
| Name | Type | Description |
|---|---|---|
title |
String | Chosen title of media |
fileName |
String | Original filename/title of media provided by source |
url |
String | Original URL to file |
id |
String | Video ID from source (IE: youtube watch code/archive.org file path) |
type |
String | Original video source |
duration |
Number | Length of media in seconds |
rawLink |
String | URL to raw file copy of media, not applicable to all sources |
- Source: