-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
68 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,54 @@ | ||
language: node_js | ||
node_js: '10.18.0' | ||
os: linux | ||
dist: xenial | ||
node_js: '11.6.0' | ||
|
||
jobs: | ||
include: | ||
- os: linux | ||
dist: trusty | ||
services: docker | ||
language: generic | ||
|
||
- os: windows | ||
language: node_js | ||
node_js: '10' | ||
env: | ||
- YARN_GPG=no | ||
- ELECTRON_CACHE=$HOME/.cache/electron | ||
- ELECTRON_BUILDER_CACHE=$HOME/.cache/electron-builder | ||
|
||
cache: | ||
yarn: true | ||
directories: | ||
- node_modules | ||
- $HOME/.cache/electron | ||
- $HOME/.cache/electron-builder | ||
- $HOME/.npm/_prebuilds | ||
|
||
env: | ||
global: | ||
- ELECTRON_CACHE=$HOME/.cache/electron | ||
- ELECTRON_BUILDER_CACHE=$HOME/.cache/electron-builder | ||
install: | ||
- yarn | ||
|
||
jobs: | ||
include: | ||
- stage: Deploy linux | ||
if: tag IS present | ||
os: linux | ||
dist: trusty | ||
script: | ||
- npm run release | ||
script: | ||
- yarn build | ||
- | | ||
if [ "$TRAVIS_OS_NAME" == "linux" ]; then | ||
docker run --rm \ | ||
-v ${PWD}:/project \ | ||
-v ~/.cache/electron:/root/.cache/electron \ | ||
-v ~/.cache/electron-builder:/root/.cache/electron-builder \ | ||
electronuserland/builder:wine \ | ||
/bin/bash -c "yarn --link-duplicates --pure-lockfile && yarn dist:linux" | ||
else | ||
yarn dist:win | ||
fi | ||
deploy: | ||
provider: releases | ||
token: $GH_TOKEN | ||
file_glob: true | ||
file: | ||
- 'dist/*.AppImage' | ||
- 'dist/*.exe' | ||
overwrite: true | ||
on: | ||
all_branches: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,33 @@ | ||
# :vhs: Youtube - Download and Cut | ||
|
||
![Repo status](https://www.repostatus.org/badges/latest/active.svg) | ||
[![Build Status](https://travis-ci.com/Markkop/yt-dlandcut.svg?branch=master)](https://travis-ci.com/Markkop/yt-dlandcut) | ||
![contributions welcome](https://img.shields.io/badge/contributions-welcome-brightgreen.svg?style=flat) | ||
|
||
## What it is | ||
|
||
This tool downloads a Youtube video to `videos` folder and cuts it given a starting and an ending time.\ | ||
The time must be in the format `HH:MM:SS` and the duration can't be longer than 24 hours. | ||
This app downloads youtube videos using youtube-dl and cuts them with ffmpeg given starting and ending times. | ||
Currently only Windows e Linux platforms are supported. | ||
|
||
## How to use | ||
|
||
- Install NodeJS and ffmpeg | ||
- Clone or download this repository | ||
- Run `npm start` inside the project's folder | ||
- Provide required information | ||
- Check `videos` folder | ||
Download the binary according to your OS: | ||
|
||
## User Options | ||
- Linux | ||
- Windows | ||
|
||
![An example of user options](http://i.imgur.com/avvmjF8.png) | ||
## How to develop | ||
|
||
Clone this repository and run `yarn` to install dependencies. | ||
Make sure to have `node` and `npm` installed. | ||
|
||
## Options | ||
|
||
- Youtube url (required) | ||
Can be a shortened version or a normal one | ||
|
||
- Starting and ending times (required) | ||
In the HH:MM:SS format. It can't be longer than 24h | ||
|
||
- Convert to mp3 | ||
It converts the same output to mp3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters