Added Travis and readme

This commit is contained in:
Xonshiz 2021-01-13 21:07:16 +05:30
parent 2c635230a7
commit 2ade4e03ae
2 changed files with 156 additions and 0 deletions

135
.travis.yml Normal file
View File

@ -0,0 +1,135 @@
matrix:
include:
- language: python
python:
- 2.6
dist: trusty
install:
- "pip install bs4"
script:
- cd src
- python __main__.py
- cd ..
notifications:
email:
- xonshiz@gmail.com
- language: python
python:
- 3.5
dist: trusty
install:
- "pip install bs4"
script:
- cd src
- python __main__.py
- cd ..
notifications:
email:
- xonshiz@gmail.com
- os: linux
language: python
python:
- 3.8
dist: xenial
before_install:
- "pip install --upgrade pip"
install:
- "python --version"
- "pip install bs4"
- "pip install pyinstaller"
script:
- cd src
- python __main__.py
- pyinstaller --onefile --hidden-import=queue "__main__.py" -n "new_movies_123_dl_linux"
- cd ..
notifications:
email:
- xonshiz@gmail.com
before_deploy:
- export TRAVIS_TAG="1.0.$TRAVIS_BUILD_NUMBER"
- echo "$TRAVIS_TAG" "$TRAVIS_COMMIT"
- git config --local user.name "$USER_NAME"
- git config --local user.email "$USER_EMAIL"
- git tag "$TRAVIS_TAG" "$TRAVIS_COMMIT"
deploy:
- provider: releases
tag_name: $TRAVIS_TAG
overwrite: true
api_key: $GITHUB_TOKEN
name: "new_movies_123_dl"
file: "new_movies_123_dl/dist/new_movies_123_dl_linux"
skip_cleanup: true
draft: false
on:
branch: master
- os: windows
language: sh
python: "3.8"
before_install:
- choco install python --version 3.8.0
- python --version
- export PATH="/c/Python38:/c/Python38/Scripts:$PATH"
- python -m pip install --upgrade pip
env: PATH=/c/Python38:/c/Python38/Scripts:$PATH
install:
- "pip install bs4"
- "pip install pyinstaller"
script:
- cd src
- python __main__.py
- pyinstaller --onefile --hidden-import=queue "__main__.py" -n "new_movies_123_dl.exe"
- cd ..
notifications:
email:
- xonshiz@gmail.com
before_deploy:
- export TRAVIS_TAG="1.0.$TRAVIS_BUILD_NUMBER"
- echo "$TRAVIS_TAG" "$TRAVIS_COMMIT"
- git config --local user.name "$USER_NAME"
- git config --local user.email "$USER_EMAIL"
- git tag "$TRAVIS_TAG" "$TRAVIS_COMMIT"
deploy:
- provider: releases
tag_name: $TRAVIS_TAG
overwrite: true
api_key: $GITHUB_TOKEN
name: "new_movies_123_dl"
file: "new_movies_123_dl/dist/new_movies_123_dl.exe"
skip_cleanup: true
draft: false
on:
branch: master
- os: osx
language: sh
python: "3.8"
before_install:
- python3 --version
- python3 -m pip install --upgrade pip
install:
- "pip install bs4"
- "pip install pyinstaller"
script:
- cd src
- python3 __main__.py
- pyinstaller --onefile --hidden-import=queue "__main__.py" -n "new_movies_123_dl_osx"
- export newMoviesVersion=`cat version.txt`
- cd ..
notifications:
email:
- xonshiz@gmail.com
before_deploy:
- export TRAVIS_TAG="1.0.$TRAVIS_BUILD_NUMBER"
- echo "$TRAVIS_TAG" "$TRAVIS_COMMIT"
- git config --local user.name "$USER_NAME"
- git config --local user.email "$USER_EMAIL"
deploy:
- provider: releases
tag_name: $TRAVIS_TAG
overwrite: true
api_key: $GITHUB_TOKEN
name: "new_movies_123_dl"
file: "new_movies_123_dl/dist/new_movies_123_dl_osx"
skip_cleanup: true
draft: false
on:
branch: master

21
readme.md Normal file
View File

@ -0,0 +1,21 @@
# [new-movies123.co Downloader](https://new-movies123.co/)
Script to bypass resolution and IP Limit on new-movies123.co
This script will download both, an mp4 1080p (or the next highest available stream) and subtitles (.srt).
Just download the proper binary and execute it. It'll ask for the URL, paste the URL and wait till the script downloads the series.
**NOTE** : Must have youtube-dl installed and available in path.
# Things To Know
- It'll work for TV Series.
- I have not yet tested this with Movies and I'm 90% sure that it'll break.
- Required "Youtube-dl" to download the video streams.
- It's best to provide URL of the 1st episode, because this script doesn't have proper validations and will throw errors if a file already exists.
P.S: This is a script I hacked around last night, because amazon prime decided not to make season 3 of "D" available in most regions and this website was the only way to grab the episodes.
Welp, use with caution. And as usual, no harm intended via this script.
Please do use the script carefully, don't hog the website bandwidth.