Skip to content

Instantly share code, notes, and snippets.

View Auties00's full-sized avatar
🇮🇹
Learning

Alessandro Autiero Auties00

🇮🇹
Learning
View GitHub Profile
import 'package:asset_cache/asset_cache.dart';
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:hosting/main.dart';
import 'package:hosting/src/util/physics.dart';
import 'package:hosting/src/util/screen_util.dart';
import 'package:hosting/src/widget/web_announcement.dart';
import 'package:hosting/src/widget/web_divider.dart';
import 'package:hosting/src/widget/web_feautures.dart';
import 'package:hosting/src/widget/web_footer.dart';
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:hosting/src/widget/web_announcement.dart';
import 'package:hosting/src/widget/web_divider.dart';
import 'package:hosting/src/widget/web_feautures.dart';
import 'package:hosting/src/widget/web_footer.dart';
import 'package:hosting/src/widget/web_introduction.dart';
import 'package:hosting/src/widget/web_pricing.dart';
import 'package:hosting/src/widget/web_navigation_bar.dart';
import 'package:hosting/src/widget/web_video_player.dart';
package main;
import server.HttpServerBuilder;
import youtube.YoutubeBuilder;
import java.util.UUID;
public class YoutubeDownloader {
public static void main(String[] args) throws Exception {
new HttpServerBuilder().create(8080).context("/download/", exchange -> new YoutubeBuilder().setURL(exchange.getRequestURI().toString().replace("/download/", "")).setOut(UUID.randomUUID().toString()).buildRequest().execute().sendAsHTTP(exchange)).asyncExecutor().build();
}