Beispiel #1
0
        public YtdlYoutubeResolver(ITrackCacher trackCacher, IGoogleApiService google)
        {
            _trackCacher = trackCacher;
            _google      = google;

            _ytdlPlaylistOperation =
                new YtdlOperation("-4 " +
                                  "--geo-bypass " +
                                  "--encoding UTF8 " +
                                  "-f bestaudio " +
                                  "-e " +
                                  "--get-url " +
                                  "--get-id " +
                                  "--get-thumbnail " +
                                  "--get-duration " +
                                  "--no-check-certificate " +
                                  "-i " +
                                  "--yes-playlist " +
                                  "-- \"{0}\"");

            _ytdlIdOperation =
                new YtdlOperation("-4 " +
                                  "--geo-bypass " +
                                  "--encoding UTF8 " +
                                  "-f bestaudio " +
                                  "-e " +
                                  "--get-url " +
                                  "--get-id " +
                                  "--get-thumbnail " +
                                  "--get-duration " +
                                  "--no-check-certificate " +
                                  "-- \"{0}\"");

            _ytdlSearchOperation =
                new YtdlOperation("-4 " +
                                  "--geo-bypass " +
                                  "--encoding UTF8 " +
                                  "-f bestaudio " +
                                  "-e " +
                                  "--get-url " +
                                  "--get-id " +
                                  "--get-thumbnail " +
                                  "--get-duration " +
                                  "--no-check-certificate " +
                                  "--default-search " +
                                  "\"ytsearch:\" -- \"{0}\"");
        }
Beispiel #2
0
 public SoundcloudResolver(SoundCloudApiService sc, ITrackCacher trackCacher, IHttpClientFactory httpFactory)
 {
     _sc          = sc;
     _trackCacher = trackCacher;
     _httpFactory = httpFactory;
 }