kapsikkum-unmanic – Blame information for rev 1

Subversion Repositories:
Rev:
Rev Author Line No. Line
1 office 1 #!/usr/bin/env python3
2 # -*- coding: utf-8 -*-
3  
4 """
5 unmanic.metadata.py
6  
7 Written by: Josh.5 <jsunnex@gmail.com>
8 Date: 04 May 2020, (11:31 AM)
9  
10 Copyright:
11 Copyright (C) Josh Sunnex - All Rights Reserved
12  
13 Permission is hereby granted, free of charge, to any person obtaining a copy
14 of this software and associated documentation files (the "Software"), to deal
15 in the Software without restriction, including without limitation the rights
16 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
17 copies of the Software, and to permit persons to whom the Software is
18 furnished to do so, subject to the following conditions:
19  
20 The above copyright notice and this permission notice shall be included in all
21 copies or substantial portions of the Software.
22  
23 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
24 EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
25 MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
26 IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
27 DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
28 OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE
29 OR OTHER DEALINGS IN THE SOFTWARE.
30  
31 """
32 import json
33 import os
34  
35  
36 def read_version_string(version_type='long'):
37 """
38 Return the application's version number as a string
39  
40 :return:
41 """
42 try:
43 root_dir = os.path.dirname(os.path.realpath(__file__))
44 version_file = os.path.join(root_dir, 'version')
45 with open(version_file) as json_file:
46 data = json.load(json_file)
47 return data[version_type]
48 except:
49 return 'UNKNOWN.VERSION'
50  
51  
52 __name = "unmanic"
53 __author = "Josh.5"
54 __email = "jsunnex@gmail.com"
55  
56 __author__ = '%s (%s)' % (__author, __email)
57 __version__ = read_version_string('short')
58 __description__ = "A simple tool for optimising your video library to a single format"
59 __disclaimer__ = ""
60 __forum__ = ""
61 __video__ = ""
62 __website__ = "https://github.com/Josh5/unmanic"
63 __description__ = "A simple tool for optimising your video library to a single format"
64 __copyright__ = """
65 Copyright:
66 Copyright (C) Josh Sunnex - All Rights Reserved
67  
68 Permission is hereby granted, free of charge, to any person obtaining a copy
69 of this software and associated documentation files (the "Software"), to deal
70 in the Software without restriction, including without limitation the rights
71 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
72 copies of the Software, and to permit persons to whom the Software is
73 furnished to do so, subject to the following conditions:
74  
75 The above copyright notice and this permission notice shall be included in all
76 copies or substantial portions of the Software.
77  
78 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
79 EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
80 MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
81 IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
82 DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
83 OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE
84 OR OTHER DEALINGS IN THE SOFTWARE.
85 """