public final class MediaCCCParsingHelper extends Object
Modifier and Type | Method and Description |
---|---|
static com.grack.nanojson.JsonArray |
getLiveStreams(Downloader downloader,
Localization localization)
Get currently available live streams from
https://streaming.media.ccc.de/streams/v2.json.
|
static boolean |
isLiveStreamId(String id)
Check whether an id is a live stream id
|
static OffsetDateTime |
parseDateFrom(String textualUploadDate) |
public static OffsetDateTime parseDateFrom(String textualUploadDate) throws ParsingException
ParsingException
public static boolean isLiveStreamId(String id)
id
- the id
to checktrue
if the id
is formatted like
{conference_slug}/{room_slug}
; false
otherwisepublic static com.grack.nanojson.JsonArray getLiveStreams(Downloader downloader, Localization localization) throws ExtractionException
downloader
- The downloader to use for making the requestlocalization
- The localization to be used. Will most likely be ignored.JsonArray
containing current conferences and info about their rooms and
streams.ExtractionException
- if the data could not be fetched or the retrieved data could not
be parsed to a JsonArray