Add auto-updating of youtube-dl version in ISSUE_TEMPLATE Move parts of template text and adopt makefile to new format Moved the 'kind-of-issue' section and rephrased a bit Rephrased and moved Example URL section upwards Moved ISSUE_TEMPLATE inside .github folder. Update makefile to match new folderstructuremaster
parent
8d9dd3c34b
commit
7710bdf4e8
3 changed files with 73 additions and 1 deletions
@ -0,0 +1,37 @@ |
||||
Make sure you are using the **latest** version of youtube-dl. Latest youtube-dl version at this moment is **2016.03.06**. Read [our FAQ](https://github.com/rg3/youtube-dl/blob/master/README.md#how-do-i-update-youtube-dl) if you have troubles updating. |
||||
- [ ] I've verified that I'm running youtube-dl version **2016.03.06** |
||||
|
||||
**What is the purpose of this issue? Put an `x` to the relevant box** |
||||
- [ ] Site support request (add support for a new website) |
||||
- [ ] Feature request (request new functionality) |
||||
- [ ] Bug report (encountered problems with youtube-dl) |
||||
- [ ] Other, namely ... |
||||
|
||||
**If the purpose of this issues is a site support request please provide _at least_ one example URL of a video or a playlist you are trying to download.** |
||||
|
||||
- http://some.example.url/to-video |
||||
|
||||
*If the purpose of this issue is a bug report or you are unsure about its relevance please include a log as described below.* |
||||
|
||||
**Please include the full output of youtube-dl when run with `-v`**, i.e. **add** `-v` flag to **your command line**, copy the **whole** output and post it below wrapped in ``` for better formatting. It should look similar to this: |
||||
``` |
||||
$ youtube-dl -v <your command line> |
||||
[debug] System config: [] |
||||
[debug] User config: [] |
||||
[debug] Command-line args: [u'-v', u'http://www.youtube.com/watch?v=BaW_jenozKcj'] |
||||
[debug] Encodings: locale cp1251, fs mbcs, out cp866, pref cp1251 |
||||
[debug] youtube-dl version 2015.12.06 |
||||
[debug] Git HEAD: 135392e |
||||
[debug] Python version 2.6.6 - Windows-2003Server-5.2.3790-SP2 |
||||
[debug] exe versions: ffmpeg N-75573-g1d0487f, ffprobe N-75573-g1d0487f, rtmpdump 2.4 |
||||
[debug] Proxy map: {} |
||||
... |
||||
``` |
||||
|
||||
**Brief description of the problem/request** |
||||
|
||||
*I am having a problem with ... I have tried to do ... and ... I expected that ... would happen, but instead ... happened. Example: I tried to download a file but the site was not supported. Please add support for site xyz. Another example: I encountered a bug when downloading a video from xyz. I have tried to do a and b.* |
||||
|
||||
**Suggested solution or other information** |
||||
|
||||
*In case you have suggestions for a solution or any other relevant information you can write it here* |
@ -0,0 +1,32 @@ |
||||
#!/usr/bin/env python |
||||
from __future__ import unicode_literals |
||||
|
||||
import io |
||||
import optparse |
||||
import re |
||||
|
||||
|
||||
def main(): |
||||
parser = optparse.OptionParser(usage='%prog FILE') |
||||
options, args = parser.parse_args() |
||||
if len(args) != 1: |
||||
parser.error('Expected an filename') |
||||
|
||||
with io.open(args[0], encoding='utf-8') as inf: |
||||
issue_template_text = inf.read() |
||||
|
||||
# Get the version from youtube_dl/version.py without importing the package |
||||
exec(compile(open('youtube_dl/version.py').read(), |
||||
'youtube_dl/version.py', 'exec')) |
||||
|
||||
issue_template_text = re.sub( |
||||
r'(?<=\*\*)(?P<version>[0-9\.]+)(?=\*\*)', |
||||
__version__, |
||||
issue_template_text |
||||
) |
||||
|
||||
with io.open(args[0], 'w', encoding='utf-8') as outf: |
||||
outf.write(issue_template_text) |
||||
|
||||
if __name__ == '__main__': |
||||
main() |
Loading…
Reference in new issue