Subversion Repositories yt_downloader

Rev

Rev 16 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 16 Rev 19
Line 1... Line 1...
1
<?php
1
<?php
2
 
2
 
3
// ViaThinkSoft YouTube Downloader Functions 2.3
3
// ViaThinkSoft YouTube Downloader Functions 2.3
4
// Revision: 2022-02-06
4
// Revision: 2022-12-19
5
// Author: Daniel Marschall <www.daniel-marschall.de>
5
// Author: Daniel Marschall <www.daniel-marschall.de>
6
// Licensed under the terms of the Apache 2.0 License
6
// Licensed under the terms of the Apache 2.0 License
7
 
7
 
8
// Get API key:   https://console.developers.google.com/apis/credentials
8
// Get API key:   https://console.developers.google.com/apis/credentials
9
// Test API here: https://developers.google.com/apis-explorer/?hl=de#p/youtube/v3/youtube.playlistItems.list
9
// Test API here: https://developers.google.com/apis-explorer/?hl=de#p/youtube/v3/youtube.playlistItems.list
Line 239... Line 239...
239
 
239
 
240
        // https://www.youtube.com/c/SASASMR
240
        // https://www.youtube.com/c/SASASMR
241
        // <link rel="canonical" href="https://www.youtube.com/channel/UCp4LfMtDfoa29kTlLnqQ5Mg">
241
        // <link rel="canonical" href="https://www.youtube.com/channel/UCp4LfMtDfoa29kTlLnqQ5Mg">
242
        // https://www.youtube.com/impaulsive
242
        // https://www.youtube.com/impaulsive
243
        // <link rel="canonical" href="https://www.youtube.com/channel/UCGeBogGDZ9W3dsGx-mWQGJA">
243
        // <link rel="canonical" href="https://www.youtube.com/channel/UCGeBogGDZ9W3dsGx-mWQGJA">
-
 
244
        // https://www.youtube.com/@KosmonautMusicSpecials
-
 
245
        // <link rel="canonical" href="https://www.youtube.com/channel/UCayYOQ0DEIpcTgO9z_b-K1A">
244
 
246
 
245
        $cont = @file_get_contents($custom_url);
247
        $cont = @file_get_contents($custom_url);
246
        if ($cont === false) {
248
        if ($cont === false) {
247
                throw new Exception("Cannot open $custom_url using file_get_contents.");
249
                throw new Exception("Cannot open $custom_url using file_get_contents.");
248
        }
250
        }