ChandimaPrabath commited on
Commit
c67e373
·
1 Parent(s): 20b65a4
Files changed (2) hide show
  1. Instance.py +3 -1
  2. app.py +1 -1
Instance.py CHANGED
@@ -8,6 +8,7 @@ from requests.exceptions import RequestException
8
  from tqdm import tqdm
9
  from indexer import indexer
10
  import re
 
11
 
12
  CACHE_DIR = os.getenv("CACHE_DIR")
13
 
@@ -15,6 +16,7 @@ download_progress = {}
15
 
16
  class Instance:
17
  def __init__(self, id, url, cache_dir, index_file, token, repo):
 
18
  self.id = id
19
  self.url = url
20
  self.CACHE_DIR = cache_dir
@@ -328,7 +330,7 @@ class Instance:
328
  title = parts[0].strip()
329
  year = int(parts[-1])
330
 
331
- self.fetch_and_cache_json(original_title, title, media_type, year)
332
 
333
  def bytes_to_human_readable(self, num, suffix="B"):
334
  for unit in ["", "K", "M", "G", "T", "P", "E", "Z"]:
 
8
  from tqdm import tqdm
9
  from indexer import indexer
10
  import re
11
+ from tvdb import fetch_and_cache_json
12
 
13
  CACHE_DIR = os.getenv("CACHE_DIR")
14
 
 
16
 
17
  class Instance:
18
  def __init__(self, id, url, cache_dir, index_file, token, repo):
19
+ self.version = "0.2V Alpha"
20
  self.id = id
21
  self.url = url
22
  self.CACHE_DIR = cache_dir
 
330
  title = parts[0].strip()
331
  year = int(parts[-1])
332
 
333
+ fetch_and_cache_json(original_title, title, media_type, year)
334
 
335
  def bytes_to_human_readable(self, num, suffix="B"):
336
  for unit in ["", "K", "M", "G", "T", "P", "E", "Z"]:
app.py CHANGED
@@ -225,7 +225,7 @@ def get_all_tvshows_api():
225
  # Routes
226
  @app.route('/')
227
  def index():
228
- return "Server Running ..."
229
 
230
  # Main entry point
231
  if __name__ == "__main__":
 
225
  # Routes
226
  @app.route('/')
227
  def index():
228
+ return f"Server Running Version {instance.version}"
229
 
230
  # Main entry point
231
  if __name__ == "__main__":