×
all 5 comments

[–]kodemage 8 points9 points  (3 children)

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.

[–]powerlanguagereddit[S] 1 point2 points  (2 children)

We're looking into this.

[–]ecr80 1 point2 points  (0 children)

hopefully there is a way...

[–]ChronicDenial 1 point2 points  (0 children)

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.

[–]blahiloveberlin 4 points5 points  (0 children)

Is there a way to subscribe to it by rss?