Press J to jump to the feed. Press question mark to learn the rest of the keyboard shortcuts
50
Archived

Early access to an ad-free version of our Upvoted podcast

5 comments
80% Upvoted
This thread is archived
New comments cannot be posted and votes cannot be cast
level 1

Is there like a gold only podcast link? I have the plebeian podcast link in my podcatcher but I don't actually have a way to get the episodes early save by fetching them manually and then transferring them to my phone.

level 2
redditOriginal Poster2 points · 3 years ago

We're looking into this.

level 3
2 points · 2 years ago

hopefully there is a way...

level 3

I found this .js code a little while ago:

Here's a simple snippet of a JS file that downloads a file using XHR. The function accepts callbacks to return results. 

    function prefetch_file(url,  
                           fetched_callback,  
                           progress_callback,  
                           error_callback) {  
      var xhr = new XMLHttpRequest();  
      xhr.open("GET", url, true);  
      xhr.responseType = "blob";  
      
      xhr.addEventListener("load", function () {  
        if (xhr.status === 200) {  
          var URL = window.URL || window.webkitURL;  
          var blob_url = URL.createObjectURL(xhr.response);  
          fetched_callback(blob_url);  
        } else {  
          error_callback();  
        }  
      }, false);  
      
      var prev_pc = 0;  
      xhr.addEventListener("progress", function(event) {  
        if (event.lengthComputable) {  
          var pc = Math.round((event.loaded / event.total) * 100);  
          if (pc != prev_pc) {  
            prev_pc = pc;   
            progress_callback(pc);  
          }  
        }  
      });  
      xhr.send();  
    }  

When the file is successfully downloaded, the fetched_callback is called with an argument which is the blob URI. You can simply set this as the src of an audio or video element and can then play the fully-downloaded resource. You can also set the same blob URI as the src of multiple audio/video elements, and the downloaded data won't be re-downloaded or duplicated/copied in memory.

There's also a progress_callback that's called with a percentage complete parameter as the file is downloaded, and an error_callback that's called when the download fails.

Source: http://blog.pearce.org.nz/2014/02/how-to-prefetch-videoaudio-files-for.html

If this is in no way close to what platform you guys are using, disregard this post.

level 1

Is there a way to subscribe to it by rss?

Community Details

26.5k

Subscribers

30

Online

A subreddit within which the denizens of reddit can discuss the merits and detriments of reddit gold.

Create Post
Cookies help us deliver our Services. By using our Services or clicking I agree, you agree to our use of cookies. Learn More.