Skip to content

Instantly share code, notes, and snippets.

View thebells1111's full-sized avatar
👷‍♂️
Looking for Work

Steven Bell thebells1111

👷‍♂️
Looking for Work
View GitHub Profile
<!DOCTYPE html>
<html>
<head>
<script
src="https://unpkg.com/webln@0.3.2/dist/webln.min.js"
integrity="sha384-MpjpvOQqXz9nCoLUS/sR0bhLwGYuNPMOBN50jsqhnqAzDq0GiOI0u6oC5fHitzI2"
crossorigin="anonymous"
></script>
<style>
#boost,
<rss xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" xmlns:podcast="https://github.com/Podcastindex-org/podcast-namespace/blob/main/docs/1.0.md" version="2.0">
<channel>
<title>Podcasting 2.0</title>
<description>The Podcast Index presents Podcasting 2.0 - Upgrading Podcasting</description>
<link>http://podcastindex.org</link>
<docs>http://blogs.law.harvard.edu/tech/rss</docs>
<language>en</language>
<generator>Freedom Controller</generator>
<pubDate>Thu, 28 Oct 2021 20:46:11 +0000</pubDate>
<lastBuildDate>Thu, 28 Oct 2021 20:46:11 +0000</lastBuildDate>
let record = {
7629169: {
podcast:
$playingPodcast.title.length < 101
? $playingPodcast.title
: $playingPodcast.title.substring(0, 100) + '...',
feedID: $playingPodcast.id,
episode:
$playingEpisode.title.length < 101
? $playingEpisode.title
@thebells1111
thebells1111 / fast-parse.js
Created July 21, 2021 12:22
fast-parse-xml html entities
var parser = require('fast-xml-parser');
var he = require('he');
const fetch = require('node-fetch');
const getEpisodesFromURL = (exports.getEpisodesFromURL = async function (
feedUrl
) {
try {
const res = await fetch(feedUrl);
const feed = await res.text();
@thebells1111
thebells1111 / test.html
Last active June 10, 2021 20:14
Minimum implementation of videojs, p2p and hls
<head>
<link href="https://vjs.zencdn.net/7.11.4/video-js.css" rel="stylesheet" />
<script
src="https://cdn.jsdelivr.net/npm/p2p-media-loader-core@latest/build/p2p-media-loader-core.min.js"></script>
<script
src="https://cdn.jsdelivr.net/npm/p2p-media-loader-hlsjs@latest/build/p2p-media-loader-hlsjs.min.js"></script>
<script src="https://vjs.zencdn.net/7.11.4/video.min.js"></script>
<script
src=" https://cdn.streamroot.io/videojs-hlsjs-plugin/1/stable/videojs-hlsjs-plugin.js"></script>
function exportOPML() {
let newOpml = jsonToXML(podcastList);
let file = new Blob([newOpml], { type: 'text/xml' });
let a = document.createElement('a');
a.href = URL.createObjectURL(file);
a.download = 'podcast.opml';
a.click();
a.remove();
$showOPML = false;