2021-03-11 14:20:10 +01:00
|
|
|
// ignore_for_file: avoid_print
|
2020-02-20 22:45:36 +01:00
|
|
|
import 'package:youtube_explode_dart/youtube_explode_dart.dart';
|
2020-02-20 19:50:10 +01:00
|
|
|
|
2021-03-26 10:07:54 +01:00
|
|
|
import 'package:youtube_explode_dart/src/youtube_explode_base.dart';
|
|
|
|
|
2020-02-20 19:50:10 +01:00
|
|
|
Future<void> main() async {
|
2021-03-26 10:07:54 +01:00
|
|
|
var yt = YoutubeExplode();
|
|
|
|
var video =
|
|
|
|
await yt.videos.get('https://www.youtube.com/watch?v=AI7ULzgf8RU');
|
2020-02-20 19:50:10 +01:00
|
|
|
|
2021-03-26 10:07:54 +01:00
|
|
|
print('Title: ${video.title}');
|
2020-11-13 09:21:36 +01:00
|
|
|
|
2021-03-26 10:07:54 +01:00
|
|
|
// Close the YoutubeExplode's http client.
|
2020-11-13 09:21:36 +01:00
|
|
|
yt.close();
|
2020-02-20 19:50:10 +01:00
|
|
|
}
|