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:
Members
duration
Length of media in seconds
- Source:
fileName
Original filename/title of media provided by source
- Source:
id
Video ID from source (IE: youtube watch code/archive.org file path)
- Source:
rawLink
URL to raw file copy of media, not applicable to all sources
- Source:
title
Chosen title of media
- Source:
type
Original video source
- Source:
url
Original URL to file
- Source: