Podcast subscription class

Podcast

Hierarchy (view full)

Constructors

Properties

asJSON: string

Gets the object as serialized JSON string. Or sets serialized JSON (to fill this object's metadata by the metadata included within the JSON)

customizeRules: boolean

State of '[x] Customize subscription rules' checkbox to override global podcast settings

delEpisodes: boolean

State of '[x] Delete episodes older than' checkbox

delOnlyListened: boolean

State of '[x] Only if they have been listened to' checkbox

delRating: boolean

State of '[x] Only if rating less than' checkbox

delRatingValue: number

Gets/Sets rating value corresponding to '[x] Only if rating less than' checkbox

deleted: boolean

Set to true after deletion so that 'change' event is called and item is removed from UI lists.

description: string

Gets/Sets description of this podcast subscription

dontNotify: boolean

Undocumented

downloadType: number

Value correposning to '[x] On update, download [xxx][yyy]' dropdowns

DOWNLOAD_ALL = 0; DOWNLOAD_RECENT_1 = 1; DOWNLOAD_RECENT_2 = 2; DOWNLOAD_RECENT_5 = 3; DOWNLOAD_RECENT_10 = 4; DOWNLOAD_RECENT_20 = 5; DOWNLOAD_NOTHING = 6; DOWNLOAD_RECENT_1_DAY = 7; DOWNLOAD_RECENT_2_DAYS = 8; DOWNLOAD_RECENT_3_DAYS = 9; DOWNLOAD_RECENT_WEEK = 10; DOWNLOAD_RECENT_2_WEEK = 11; DOWNLOAD_RECENT_MONTH = 12; DOWNLOAD_OLDEST_1 = 13; DOWNLOAD_OLDEST_2 = 14; DOWNLOAD_OLDEST_5 = 15; DOWNLOAD_OLDEST_10 = 16; DOWNLOAD_OLDEST_20 = 17;

episodeAge: number

Value correposning to '[x] Delete episodes older than [xxx]' dropdown

generator: string

Undocumented

id: number

Undocumented

idColl: number

Undocumented

isObservable: boolean

Whether this object can be listened (e.g. for 'change' event)

isStatusBarSource: boolean

Is source for status bar informations.

itemImageType: string

Undocumented

login: string

Gets/Sets login in case podcast feed is password protected

objectType: string

Gets the object type as string

overwriteTags: boolean

Value correposning to '[x] On download, tag episodes based on data from podcast feed' checkbox

password: string

Gets/Sets password in case podcast feed is password protected

persistentID: string

Gets persistent id of the object

podcastURL: string

Gets/Sets subscription feed URL link (link to RSS/XML podcast feed)

retainEpisodes: boolean

Value correposning to '[x] Always retain the [xxx]' checkbox

retainNumber: number

Gets/Sets number of episodes to be kept

showRemovedEpisodes: boolean

Whether to show links to already removed episodes

statusInfo: Promise<any>

Undocumented

supportPin: boolean

Whether object support pin to pinned list

title: string

Gets/Sets title of the podcast subscription.

Methods

  • Add new external list associated with object.

    Parameters

    • linkType: string

      Type of a link

    • linkInfo: string

      Link information (like release or releaseGroup for musicbrainz link)

    • link: string

      Link string

    Returns Promise<any>

  • Lock object to update state. Events are not called when in update state.

    Returns void

  • Updates the object every X ms when called periodically. Useful e.g. when filling lists. Can be used only in the update lock! (i.e. between beginUpdate/endUpdate)

    Parameters

    • interval: number

    Returns void

  • Commits this podcast

    Returns Promise<any>

  • Parameters

    Returns Promise<any>

    Undocumented

  • Unlock object from update state. beginUpdate and endUpdate must be in pair. When endUpdate is called, change event is called.

    Returns boolean

  • Returns Promise<any>

    Undocumented

  • Gets class name of the object.

    Returns string

  • Gets episodes of this podcast subscription, similar to getTracklist(), but can specify other params

    Parameters

    • onlyDownloaded: boolean
    • onlyUnplayed: boolean

    Returns Tracklist

    as promise

    Example

    var trcklist = Podcast.getEpisodeList(true, false); <br>
    trcklist.whenLoaded().then(function () { <br>
    // all downloaded episodes in trcklist <br>
    }); <br>
  • Parameters

    • infoType: string

    Returns number

    Undocumented

  • Get external link associated with the object. All link identifiers are (updated list is available in consts.js) : var LINK_MUSICBRAINZ = 'musicbrainz', LINK_ACOUSTID = 'acoustid', LINK_TVDB = 'tvdb', LINK_MAZE = 'maze', LINK_IMDB = 'imdb', LINK_WIKI = 'wiki', LINK_ECHOPRINT = 'echoprint', LINK_MOVIEDB = 'moviedb', LINK_DISCOGS = 'discogs';

    Parameters

    • Rest ...params: any[]

    Returns ExternalLinksList

  • Returns link to cached image thumbnail of the nearest specified size

    Parameters

    • Rest ...params: any[]

    Returns number

  • Gets all tracks (episodes) of this podcast subscription

    Parameters

    • Rest ...params: any[]

    Returns Tracklist

    as promise

    Example

    var trcklist = Podcast.getTracklist(); <br>
    trcklist.whenLoaded().then(function () { <br>
    // all tracks are loaded here <br>
    }); <br>
  • Parameters

    • id: number

    Returns boolean

    Undocumented

  • Object is pinned in pinned list

    Returns Promise<any>

  • Call defined method with locked data so user can access them.

    Parameters

    • func: (() => any)

      Method to call

        • (): any
        • Returns any

    Returns void

  • Call defined method with the item locked for modifications.

    Parameters

    • Rest ...params: any[]

    Returns Promise<any>

  • Notifies that the object was changed (e.g. to force visual update etc.)

    Parameters

    • Rest ...params: any[]

    Returns void

  • Remove external link from object.

    Parameters

    • Rest ...params: any[]

    Returns Promise<any>

  • Runs update of this podcast

    Returns void

  • Parameters

    • id: number
    • value: boolean

    Returns void

    Undocumented

  • Set object is pinned in pinned list.

    Parameters

    • pinned: boolean

      Object is pinned

    • collID: number

      ID of collection where object is pinned

    Returns void

  • Unsubscribes this podcast

    Parameters

    • deleteTracks: boolean

      If true, also downloaded tracks will be deleted

    Returns Promise<any>

Events

event_change: ((changeType, ...additionalArgs) => void)

Event is called when object is somehow changed

See App.listen

Type declaration

    • (changeType, ...additionalArgs): void
    • Parameters

      • changeType: string

        additional change type (can have values like 'tracklist', 'deleted', 'title' or undefined)

      • Rest ...additionalArgs: any[]

      Returns void

Example

app.listen(object, 'change', (changeType) => {  });
event_destroying: (() => void)

Event is called when object is going to destroy

See App.listen

Type declaration

    • (): void
    • Returns void

event_statuschange: (() => void)

Event is called when status info of the object is changed

See App.listen

Type declaration

    • (): void
    • Returns void