Skip to content

Flutter package for direct link extractor from URL to stream and download directly

License

Notifications You must be signed in to change notification settings

otaku011/direct_link

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

direct_link

For those who want to create a movie and downloader app, this is a useful package.

You can get a direct link from the URL that my support sites.

Support Sites

  • Vimeo
  • Twitter
  • Youtube
  • Facebook
  • DailyMotion
  • PCloud
  • MegaUp
  • Dropbox
  • SolidFiles
  • MediaFire
  • MP4Upload
  • Google Drive
  • Xnxx
  • PornHub
  • xHamster

Getting Started

In the pubspec.yaml of your flutter project, add the following dependency:

dependencies:
  ...
  direct_link:

Next we need to install this

# Dart
pub get

# Flutter
flutter packages get

In your library add the following import:

import 'package:direct_link/direct_link.dart';

Usage

Use check class to check your link have been existed my support sites

var check = await DirectLink.check(url); // add your url

Example

if (check == null) {
    // null condition
}else{
     if (check.length > 1) {
         // multiple links and quality
     }else{
         // single link
     }
}

About

Flutter package for direct link extractor from URL to stream and download directly

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Dart 47.0%
  • C++ 33.8%
  • CMake 14.7%
  • C 1.8%
  • Objective-C 1.5%
  • Swift 0.7%
  • Other 0.5%