Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: MrS0m30n3/youtube-dl-gui
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 0.3.8
Choose a base ref
...
head repository: MrS0m30n3/youtube-dl-gui
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref

Commits on Apr 5, 2015

  1. Copy the full SHA
    3fb30d8 View commit details

Commits on May 24, 2015

  1. Update README.md

    MrS0m30n3 committed May 24, 2015
    Copy the full SHA
    c6379ab View commit details

Commits on May 25, 2015

  1. Copy the full SHA
    0358d0b View commit details

Commits on Jun 5, 2015

  1. Update HOWTO.md

    MrS0m30n3 committed Jun 5, 2015
    Copy the full SHA
    d335cb4 View commit details

Commits on Jun 8, 2015

  1. Copy the full SHA
    741daa5 View commit details
  2. Update ToDo

    MrS0m30n3 committed Jun 8, 2015
    Copy the full SHA
    fef4903 View commit details

Commits on Jun 15, 2015

  1. Added spanish translation

    dnlsrl committed Jun 15, 2015
    Copy the full SHA
    a2f08bc View commit details
  2. Copy the full SHA
    7021078 View commit details
  3. Fixed translation file

    dnlsrl committed Jun 15, 2015
    Copy the full SHA
    ae9f58f View commit details
  4. Merge pull request #46 from dnlsrl/master

    Added spanish translation
    MrS0m30n3 committed Jun 15, 2015
    Copy the full SHA
    36a231d View commit details
  5. Copy the full SHA
    61684dd View commit details

Commits on Jun 18, 2015

  1. Fixed translation

    dnlsrl committed Jun 18, 2015
    Copy the full SHA
    3c88792 View commit details
  2. Merge pull request #47 from dnlsrl/master

    Fixed translation
    MrS0m30n3 committed Jun 18, 2015
    Copy the full SHA
    fac9159 View commit details
  3. Copy the full SHA
    811873a View commit details

Commits on Jun 21, 2015

  1. Add osx app creation.

    pr0d1r2 committed Jun 21, 2015
    2
    Copy the full SHA
    3d8aa8a View commit details
  2. Merge pull request #42 from pr0d1r2/osx-app

    Osx app creation
    MrS0m30n3 committed Jun 21, 2015
    Copy the full SHA
    95189d3 View commit details

Commits on Jun 29, 2015

  1. Change the way DownloadManager collects the number of successful down…

    …loads
    
    Before a callback was used to increase the number of successful downloads
    resulting in multiple worker threads trying to edit the same variable.
    Now each worker thread stores the number of successful downloads for itself
    and the DownloadManager collects this number after download process
    has finished.
    MrS0m30n3 committed Jun 29, 2015
    Copy the full SHA
    76b4138 View commit details
  2. Copy the full SHA
    3a1c09a View commit details
  3. Copy the full SHA
    b331c56 View commit details

Commits on Jun 30, 2015

  1. Copy the full SHA
    053112c View commit details

Commits on Jul 2, 2015

  1. Copy the full SHA
    3955e9b View commit details
  2. Copy the full SHA
    3d2c913 View commit details
  3. Copy the full SHA
    d886f72 View commit details
  4. Update gui labels

    MrS0m30n3 committed Jul 2, 2015
    Copy the full SHA
    365dc13 View commit details

Commits on Jul 13, 2015

  1. Copy the full SHA
    b646af4 View commit details
  2. Copy the full SHA
    39f148c View commit details
  3. Fix active urls report

    MrS0m30n3 committed Jul 13, 2015
    Copy the full SHA
    d142867 View commit details
  4. Copy the full SHA
    a5b3831 View commit details
  5. Copy the full SHA
    b2b76e6 View commit details
  6. Copy the full SHA
    efea8b7 View commit details
  7. Copy the full SHA
    e884eac View commit details
  8. Copy the full SHA
    fb920c7 View commit details

Commits on Sep 28, 2015

  1. Add Hebrew translation

    MrS0m30n3 committed Sep 28, 2015
    Copy the full SHA
    2dfd74f View commit details

Commits on Oct 4, 2015

  1. Copy the full SHA
    5f2cb87 View commit details

Commits on Oct 5, 2015

  1. Move download info to the Worker class

    Move download informations from the downloaders.py module
    to the downloadmanager.py Worker class. By moving those
    informations to the Worker class we don't need to add them
    in each downloader separately every time a new one gets
    implemented, giving us a better design overall.
    MrS0m30n3 committed Oct 5, 2015
    Copy the full SHA
    6b3c6ac View commit details

Commits on Oct 12, 2015

  1. Copy the full SHA
    ad4bf6e View commit details

Commits on Oct 14, 2015

  1. Copy the full SHA
    6377928 View commit details

Commits on Oct 18, 2015

  1. Copy the full SHA
    def80ed View commit details

Commits on Oct 19, 2015

  1. Copy the full SHA
    b84a84f View commit details

Commits on Nov 10, 2015

  1. Update README.md

    Added instructions for installing on Mac with pip.
    Updated Windows setup link to point to latest version on Github releases.
    daviewales committed Nov 10, 2015
    Copy the full SHA
    bf8db41 View commit details

Commits on Nov 21, 2015

  1. Copy the full SHA
    94816ea View commit details
  2. Copy the full SHA
    61fed86 View commit details

Commits on Nov 22, 2015

  1. Fixed mistake

    Arttse committed Nov 22, 2015
    Copy the full SHA
    c2b2fbe View commit details
  2. Copy the full SHA
    ec771b2 View commit details

Commits on Feb 5, 2016

  1. Merge pull request #62 from daviewales/patch-2

    Update README.md
    MrS0m30n3 committed Feb 5, 2016
    Copy the full SHA
    91cd031 View commit details

Commits on Feb 8, 2016

  1. Copy the full SHA
    091d664 View commit details

Commits on Feb 9, 2016

  1. Merge pull request #64 from Arttse/master

    Add Russian language
    MrS0m30n3 committed Feb 9, 2016
    Copy the full SHA
    66e1157 View commit details
  2. Add Turkish language

    MrS0m30n3 committed Feb 9, 2016
    Copy the full SHA
    ee5617c View commit details
  3. Update ToDo list

    MrS0m30n3 committed Feb 9, 2016
    Copy the full SHA
    75902a6 View commit details

Commits on Feb 11, 2016

  1. Copy the full SHA
    21b3373 View commit details
Showing with 11,682 additions and 3,841 deletions.
  1. +85 −0 .github/ISSUE_TEMPLATE.md
  2. +6 −0 .gitignore
  3. +9 −0 .tx/config
  4. +23 −0 AUTHORS
  5. +25 −0 ChangeLog
  6. +14 −5 MANIFEST.in
  7. +42 −43 README.md
  8. +44 −0 TODO
  9. +0 −3 ToDo
  10. +59 −0 devscripts/bump-version.sh
  11. +323 −0 devscripts/check-translation.py
  12. +67 −0 devscripts/new-locale.py
  13. +27 −0 devscripts/update-authors.sh
  14. +56 −0 devscripts/update-locales.sh
  15. +63 −0 docs/faqs.md
  16. +146 −0 docs/localization_howto.md
  17. +0 −73 locale_build/HOWTO.md
  18. +0 −35 locale_build/build_locale.bat
  19. +0 −32 locale_build/build_locale.sh
  20. +0 −18 osx/Info.plist
  21. +0 −1 osx/PkgInfo
  22. BIN osx/YoutubeDlGui.icns
  23. +238 −97 setup.py
  24. 0 osx/empty.lproj → tests/__init__.py
  25. +550 −0 tests/test_ditem.py
  26. +276 −0 tests/test_dlist.py
  27. +141 −0 tests/test_parsers.py
  28. +213 −0 tests/test_utils.py
  29. +273 −0 tests/test_widgets.py
  30. +28 −0 youtube-dl-gui.1
  31. +19 −4 youtube_dl_gui/__init__.py
  32. BIN ...be_dl_gui/{icons/youtube-dl-gui_128x128.png → data/icons/hicolor/128x128/apps/youtube-dl-gui.png}
  33. BIN youtube_dl_gui/{icons/youtube-dl-gui_16x16.png → data/icons/hicolor/16x16/apps/youtube-dl-gui.png}
  34. BIN ...be_dl_gui/{icons/youtube-dl-gui_256x256.png → data/icons/hicolor/256x256/apps/youtube-dl-gui.png}
  35. BIN youtube_dl_gui/{icons/youtube-dl-gui_32x32.png → data/icons/hicolor/32x32/apps/youtube-dl-gui.png}
  36. BIN youtube_dl_gui/{icons/youtube-dl-gui_48x48.png → data/icons/hicolor/48x48/apps/youtube-dl-gui.png}
  37. BIN youtube_dl_gui/{icons/youtube-dl-gui_64x64.png → data/icons/hicolor/64x64/apps/youtube-dl-gui.png}
  38. BIN youtube_dl_gui/data/pixmaps/arrow_down_32px.png
  39. BIN youtube_dl_gui/data/pixmaps/arrow_up_32px.png
  40. BIN youtube_dl_gui/data/pixmaps/camera_32px.png
  41. BIN youtube_dl_gui/data/pixmaps/cloud_download_32px.png
  42. BIN youtube_dl_gui/data/pixmaps/delete_32px.png
  43. BIN youtube_dl_gui/data/pixmaps/folder_32px.png
  44. +2 −0 youtube_dl_gui/data/pixmaps/icons-license
  45. BIN youtube_dl_gui/data/pixmaps/pause_32px.png
  46. BIN youtube_dl_gui/data/pixmaps/play_arrow_32px.png
  47. BIN youtube_dl_gui/data/pixmaps/reload_32px.png
  48. BIN youtube_dl_gui/data/pixmaps/settings_20px.png
  49. BIN youtube_dl_gui/data/pixmaps/stop_32px.png
  50. BIN youtube_dl_gui/{icons → data/pixmaps}/youtube-dl-gui.ico
  51. BIN youtube_dl_gui/data/pixmaps/youtube-dl-gui.png
  52. +295 −151 youtube_dl_gui/downloaders.py
  53. +524 −90 youtube_dl_gui/downloadmanager.py
  54. +184 −0 youtube_dl_gui/formats.py
  55. BIN youtube_dl_gui/icons/youtube-dl-gui_512x512.png
  56. +1 −1 youtube_dl_gui/info.py
  57. BIN youtube_dl_gui/locale/ar_AR/LC_MESSAGES/youtube_dl_gui.mo
  58. +0 −443 youtube_dl_gui/locale/ar_AR/LC_MESSAGES/youtube_dl_gui.po
  59. +602 −0 youtube_dl_gui/locale/ar_SA/LC_MESSAGES/youtube_dl_gui.po
  60. +601 −0 youtube_dl_gui/locale/cs_CZ/LC_MESSAGES/youtube_dl_gui.po
  61. BIN youtube_dl_gui/locale/de_DE/LC_MESSAGES/youtube_dl_gui.mo
  62. +0 −440 youtube_dl_gui/locale/de_DE/LC_MESSAGES/youtube_dl_gui.po
  63. BIN youtube_dl_gui/locale/en_US/LC_MESSAGES/youtube_dl_gui.mo
  64. +353 −193 youtube_dl_gui/locale/en_US/LC_MESSAGES/youtube_dl_gui.po
  65. +603 −0 youtube_dl_gui/locale/es_ES/LC_MESSAGES/youtube_dl_gui.po
  66. BIN youtube_dl_gui/locale/fr_FR/LC_MESSAGES/youtube_dl_gui.mo
  67. +442 −281 youtube_dl_gui/locale/fr_FR/LC_MESSAGES/youtube_dl_gui.po
  68. +604 −0 youtube_dl_gui/locale/it_IT/LC_MESSAGES/youtube_dl_gui.po
  69. +600 −0 youtube_dl_gui/locale/ja_JP/LC_MESSAGES/youtube_dl_gui.po
  70. +600 −0 youtube_dl_gui/locale/ko_KR/LC_MESSAGES/youtube_dl_gui.po
  71. BIN youtube_dl_gui/locale/pt_BR/LC_MESSAGES/youtube_dl_gui.mo
  72. +433 −272 youtube_dl_gui/locale/pt_BR/LC_MESSAGES/youtube_dl_gui.po
  73. +600 −0 youtube_dl_gui/locale/ru_RU/LC_MESSAGES/youtube_dl_gui.po
  74. +12 −5 youtube_dl_gui/logmanager.py
  75. +1,108 −248 youtube_dl_gui/mainframe.py
  76. +595 −1,121 youtube_dl_gui/optionsframe.py
  77. +89 −26 youtube_dl_gui/optionsmanager.py
  78. +91 −16 youtube_dl_gui/parsers.py
  79. +1 −1 youtube_dl_gui/updatemanager.py
  80. +180 −241 youtube_dl_gui/utils.py
  81. +1 −1 youtube_dl_gui/version.py
  82. +434 −0 youtube_dl_gui/widgets.py
85 changes: 85 additions & 0 deletions .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
## Please follow the guide below

- You will be asked some questions and requested to provide some information, please read them **carefully** and answer **honestly**
- Put an `x` into all the boxes [ ] relevant to your issue (like that [x])
- Use *Preview* tab to see how your issue will actually look like

### WARNING
All invalid issues will be rejected!!

---

### Before going further

- If your problem is a bug with **youtube-dl** or a request for new site support please report it [here](https://github.com/rg3/youtube-dl/issues)

- Make sure you are using the *latest* **youtube-dl-gui** version (Click the `Settings` icon and then `About` to view the current version)

- Make sure you are using the *latest* **youtube-dl** version (Click the `Settings` icon and then `Update` to update to the latest **youtube-dl** version)

- Make sure you searched the bugtracker for similar issues **including closed ones**

- Make sure to read the [FAQs](https://github.com/MrS0m30n3/youtube-dl-gui/blob/master/docs/faqs.md) file

- [ ] **I think** my problem is **NOT** with **youtube-dl**
- [ ] I've **verified** and **i assure** that I'm running youtube-dl-gui **0.4**
- [ ] **I assure** that i am using the latest version of **youtube-dl**
- [ ] [Searched](https://github.com/MrS0m30n3/youtube-dl-gui/issues) bugtracker
- [ ] I've read the FAQs file

---

### What is the purpose of your *issue*?

- [ ] Bug report
- [ ] Feature request (request for a new functionality)
- [ ] Question
- [ ] Other

Please remove any sections between (---) if they are not related to your issue

---

### Bug report

#### If the problem occurs when downloading a URL please provide the full verbose output as follows:

1. Restart **youtube-dl-gui**
1. Go to `Options > Extra` tab
2. Enable **Debug youtube-dl**
3. Go to `Options > Advanced` tab and **Clear** your log content
4. Try to download the URL
5. Copy the **whole** log content and insert it between the ``` part below

```
delete me and insert your log content here
```

#### What operating system do you use ?

#### List of actions to perform to reproduce the problem:

1. ..
2. ..
3. ..

#### What is the expected behaviour ?

#### What happens instead ?


---

### Feature request (request for a new functionality)

Please make sure that the requested feature is **NOT** already in the [TODO](https://github.com/MrS0m30n3/youtube-dl-gui/blob/master/TODO) list

- [ ] I've **verified** and **i assure** that my requested feature is **NOT** in the TODO list

#### What operating system do you use ?


---

<!--Enter description of your issue, suggested solution and other information below. Please make sure the description is worded well enough to be understood-->

6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
MANIFEST
*.pyc
*.mo

dist/
build/
9 changes: 9 additions & 0 deletions .tx/config
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[main]
host = https://www.transifex.com

[youtube-dl-gui.resources]
file_filter = youtube_dl_gui/locale/<lang>/LC_MESSAGES/youtube_dl_gui.po
source_file = youtube_dl_gui/locale/en_US/LC_MESSAGES/youtube_dl_gui.po
source_lang = en_US
type = PO

23 changes: 23 additions & 0 deletions AUTHORS
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Authors ordered by first contribution.

MrS0m30n3 <ytubedlg@gmail.com>
Henrique Pereira <ikkibr@gmail.com>
Fironet <dolphinssmile@hotmail.com>
Max Bruckner <max@maxbruckner.de>
Sergey M․ <dstftw@gmail.com>
Marcin Nowicki <pr0d1r2@gmail.com>
dnlsrl <dnlsrl.kaiser@gmail.com>
David Wales <daviewales@gmail.com>
Nikita Bystrov <arttsesoft@gmail.com>
nodiscc <nodiscc@gmail.com>
Leo Wzukw <leowzukw@users.noreply.github.com>
todool <tobie.doolaard@gmail.com>
Yousuf 'Jay' Philips <me@philipz.com>
memnoth <yisooan@gmail.com>
Peter Stevenson <2e0pgs@gmail.com>
Swyter <swyterzone@gmail.com>
Sebastian Wagner <sebix@sebix.at>
saad snosi <fixall.dz@gmail.com>
cleitonme <cleitonme@gmail.com>

# Generated by update-authors.sh script
25 changes: 25 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Changelog
All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)

## [Unreleased]

### Added
- ChangeLog
- 'flac' in available audio formats (#234)
- French translation (#203)
- Japanese translation (#226)
- Italian translation (#231)
- Czech translation (#233)
- Automatic locale detection during first run (#235)
- Man page (#259)
- Option to disable youtube-dl updates (#21)

### Fixed
- Bug in utils.convert_item function
- Bug in downloaders.YoutubeDLDownloader (#244)

### Changed
- Update timeout from 20 to 10 seconds (#244)

19 changes: 14 additions & 5 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,9 +1,18 @@
include TODO
include AUTHORS
include LICENSE
include README.md
include ToDo
include MANIFEST.in
include ChangeLog
include youtube-dl-gui.1

include osx/*
include locale_build/*
include youtube_dl_gui/icons/*
include tests/*.py
include devscripts/*
include docs/*

recursive-include youtube_dl_gui/locale *.mo *.po
include youtube_dl_gui/data/pixmaps/icons-license

recursive-include youtube_dl_gui/data *.png *.ico
recursive-include youtube_dl_gui/locale *.po

recursive-exclude youtube_dl_gui/locale *.mo
85 changes: 42 additions & 43 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,56 +1,55 @@
## NAME
youtube-dlG - GUI for youtube-dl
[![Donations Badge](https://yourdonation.rocks/images/badge.svg)](https://mrs0m30n3.github.io/youtube-dl-gui/donate.html)

## DESCRIPTION
A cross platform front-end GUI of the popular youtube-dl
written in wxPython.
# youtube-dlG
A cross platform front-end GUI of the popular [youtube-dl](https://rg3.github.io/youtube-dl/) media downloader written in wxPython. [Supported sites](https://rg3.github.io/youtube-dl/supportedsites.html)

## SCREENSHOT
![Youtube-dl-gui main window](http://i.imgur.com/I4oXPWs.png)
## Screenshots
![youtube-dl-gui main window](https://raw.githubusercontent.com/MrS0m30n3/youtube-dl-gui/gh-pages/images/ydlg_ui.gif)

![Options window](http://i.imgur.com/eShdoLD.png)
## Requirements
* [Python 2.7.3+](https://www.python.org/downloads)
* [wxPython 3](https://wxpython.org/download.php)
* [TwoDict](https://pypi.python.org/pypi/twodict)
* [GNU gettext](https://www.gnu.org/software/gettext/) (to build the package)
* [FFmpeg](https://ffmpeg.org/download.html) (optional, to post process video files)

## INSTALLATION
**Linux**: sudo python setup.py install
## Downloads
* [Source (.zip)](https://github.com/MrS0m30n3/youtube-dl-gui/archive/0.4.zip)
* [Source (.tar.gz)](https://github.com/MrS0m30n3/youtube-dl-gui/archive/0.4.tar.gz)
* [PyPi](https://pypi.python.org/pypi/youtube-dlg/0.4)
* [Ubuntu PPA](http://ppa.launchpad.net/nilarimogard/webupd8/ubuntu/pool/main/y/youtube-dlg/)
* [Arch AUR](https://aur.archlinux.org/packages/youtube-dl-gui-git/)
* [Slackware SlackBuild](https://slackbuilds.org/repository/14.2/network/youtube-dl-gui/)
* [openSUSE](https://software.opensuse.org/package/youtube-dl-gui)
* [Windows Installer](https://github.com/MrS0m30n3/youtube-dl-gui/releases/download/0.4/youtube-dl-gui-0.4-win-setup.zip)
* [Windows Portable](https://github.com/MrS0m30n3/youtube-dl-gui/releases/download/0.4/youtube-dl-gui-0.4-win-portable.zip)

Then you can call youtube-dlg from the command line
using "youtube-dl-gui" command or by creating a desktop launcher
## Installation

**Windows**: Check WINDOWS_SETUP
### Install From Source
1. Download & extract the source
2. Change directory into *youtube-dl-gui-0.4*
3. Run `python setup.py install`

## WINDOWS_SETUP
http://code.google.com/p/youtube-dlg/
### Install PyPi
1. Run `pip install youtube-dlg`

## LINUX_PACKAGES
**Ubuntu**: http://ppa.launchpad.net/nilarimogard/webupd8/ubuntu/pool/main/y/youtube-dlg/
### Install Windows Installer
1. Download & extract the Windows installer
2. Run the `setup.exe` file

**Arch**: https://aur.archlinux.org/packages/youtube-dl-gui-git/
## Contributing
* **Add support for new language:** See [localization howto](docs/localization_howto.md)
* **Report a bug:** See [issues](https://github.com/MrS0m30n3/youtube-dl-gui/issues)

## ADD SUPPORT FOR NEW LANGUAGE
See https://github.com/MrS0m30n3/youtube-dl-gui/blob/master/locale_build/HOWTO.md
## Authors
See [AUTHORS](AUTHORS) file

## REQUIREMENTS
[Python (version 2.7+)](http://www.python.org)
## License
The [Public Domain License](LICENSE)

[wxPython](http://wxpython.org)
## Frequently Asked Questions
See [FAQs](docs/faqs.md) file

[FFMPEG & FFPROBE](http://www.ffmpeg.org)
**Optional (In order to conver video files to audio-only files)

## PROJECT HOMEPAGE

**Youtube-dlG**: http://mrs0m30n3.github.io/youtube-dl-gui/

**Youtube-dl**: http://rg3.github.io/youtube-dl/

## AUTHOR

Sotiris Papadopoulos

email: <ytubedlg@gmail.com>

twitter: https://twitter.com/MrS0m30n3

## THANKS

Thanks to youtube-dl authors for creating such and amazing tool.
## Thanks
Thanks to everyone who contributed to this project and to [@philipzae](https://github.com/philipzae) for designing the new UI layout.
44 changes: 44 additions & 0 deletions TODO
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
Release 0.4.1
=============
* Intergrity check youtube-dl bin
* Non-Windows shutdown using D-Bus instead of 'shutdown'
* Custom youtube-dl format selection filters (e.g. -f best[height<=360])
* Remember list of urls after closing & re-opening
* Context menu add new option "Go to file" or change the behaviour of "Open destination"
* Context menu "Report Failed URL to Github" (see: #16)
* Icons theme selection


Features
========
* Improve playlist downloads
* Mix formats option
* About dialog show youtube-dl version (probably will have to create new frame)
* Settings menu add "Statistics"


Localization
============
* Add support for right to left languages (hebrew, arabic)
* Fix paths on R2L layouts


Other
=====
* Re-structure package

* Refactor
* Review - rewrite threads communications
* Add support for Python 3.*
* Logging system using the Python 'logging' module
* Use youtube-dl directly from python instead of using the subprocess module


Probably wont add
=================
* ListCtrl double click to "Rename"
* Option to enable-disable items deletion from the filesystem
* Add '--recode-video' to Formats tab
* Auto video format detection
* Change 'Warning' status to 'Finished (*)' or something similar? (see: issue #131)
* Use proxy during update phase (see: issue #244)
3 changes: 0 additions & 3 deletions ToDo

This file was deleted.

59 changes: 59 additions & 0 deletions devscripts/bump-version.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
#!/bin/bash

# Author: Sotiris Papadopoulos <ytubedlg@gmail.com>
# Last-Revision: 2017-04-17
# Script to bump the version and automatically update related files
#
# Usage: ./bump_version.sh <new-version>

PACKAGE="youtube_dl_gui"

FILES=`cat <<EOF
$PACKAGE/version.py
.github/ISSUE_TEMPLATE.md
README.md
youtube-dl-gui.1
EOF`
# Update version string on given file
# $1 = current version
# $2 = new version
# $3 = file
function update_version {
echo "Updating file: $3"
sed -i "s/$1/$2/g" $3
}
# Returns 'true' if given version is less or equal to the current version
# $1 = version to check
# $2 = current version
function version_le {
smallest_version=`echo -e "$1\n$2" | sort -V | head -n1`
[ "$1" = "$smallest_version" ]
}
if [ $# -ne 1 ]; then
echo "Usage ./bump_version.sh <new-version>"
exit 1
fi
cd ..
new_version=$1
cur_version=`grep version "$PACKAGE/version.py" | cut -d"'" -f2`
echo "Current version = $cur_version"
echo "New version = $new_version"
echo
if version_le $new_version $cur_version; then
echo "New version must be greater than the current version, exiting..."
exit 1
fi
for file in $FILES; do
update_version $cur_version $new_version $file
done
echo "Done"
Loading