Skip to content

Commit 06bf90b

Browse files
committed
update old App name refs to FireDM, issue firedm#221
1 parent 28bf625 commit 06bf90b

File tree

8 files changed

+23
-19
lines changed

8 files changed

+23
-19
lines changed

firedm/about.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@
2222
------------------------------------------------------------------------
2323
2424
your feedback is most welcomed on:
25-
https://github.com/pyIDM/FireDM
25+
https://github.com/firedm/FireDM
2626
2727
2828
Author,
2929
Mahmoud Elshahat
30-
2019-2020"""
30+
2019-2021"""

firedm/config.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@
3939
# minimum segment size which can be split in 2 halves in auto-segmentation process, refer to brain.py>thread_manager.
4040
DEFAULT_SEGMENT_SIZE = 204800 # 204800 bytes == 200 KB
4141
DEFAULT_CONCURRENT_CONNECTIONS = 3
42-
APP_URL = 'https://github.com/pyIDM/FireDM'
43-
LATEST_RELEASE_URL = 'https://github.com/pyIDM/FireDM/releases/latest'
42+
APP_URL = 'https://github.com/firedm/FireDM'
43+
LATEST_RELEASE_URL = 'https://github.com/firedm/FireDM/releases/latest'
4444

4545
# headers,
4646
DEFAULT_USER_AGENT = 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3721.3'

firedm/controller.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -501,7 +501,7 @@ def newfunc(obj, *args, **kwargs):
501501
# handle types: url and url transparent
502502
if _type in ('url', 'url_transparent'):
503503
# handle youtube user links ex: https://www.youtube.com/c/MOTORIZADO/videos
504-
# issue: https://github.com/pyIDM/FireDM/issues/146
504+
# issue: https://github.com/firedm/FireDM/issues/146
505505
# info: {'_type': 'url', 'url': 'https://www.youtube.com/playlist?list=UUK32F9z7s_JhACkUdVoWdag',
506506
# 'ie_key': 'YoutubePlaylist', 'extractor': 'youtube:user', 'webpage_url': 'https://www.youtube.com/c/MOTORIZADO/videos',
507507
# 'webpage_url_basename': 'videos', 'extractor_key': 'YoutubeUser'}
@@ -1041,10 +1041,10 @@ def _download_ffmpeg(self, destination=config.sett_folder):
10411041
# ends with 86 for 32 bit and 64 for 64 bit i.e. Win7-64: AMD64 and Vista-32: x86
10421042
if platform.machine().endswith('64'):
10431043
# 64 bit link
1044-
url = 'https://github.com/pyIDM/PyIDM/releases/download/extra/ffmpeg_64bit.exe'
1044+
url = 'https://github.com/firedm/FireDM/releases/download/extra/ffmpeg_64bit.exe'
10451045
else:
10461046
# 32 bit link
1047-
url = 'https://github.com/pyIDM/PyIDM/releases/download/extra/ffmpeg_32bit.exe'
1047+
url = 'https://github.com/firedm/FireDM/releases/download/extra/ffmpeg_32bit.exe'
10481048

10491049
log('downloading: ', url)
10501050

@@ -1162,7 +1162,7 @@ def fetch_pypi(pkg):
11621162
log('getting FireDM changelog ....')
11631163

11641164
# download change log file
1165-
url = 'https://github.com/pyIDM/pyIDM/raw/master/ChangeLog.txt'
1165+
url = 'https://github.com/firedm/FireDM/raw/master/ChangeLog.txt'
11661166
buffer = download(url, verbose=False) # get BytesIO object
11671167

11681168
if buffer:

firedm/model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def setter(self, super_class, key, value):
4646
except:
4747
old_value = None
4848

49-
# normalize folder path https://github.com/pyIDM/FireDM/issues/185
49+
# normalize folder path https://github.com/firedm/FireDM/issues/185
5050
if key == 'folder':
5151
value = os.path.normpath(value)
5252

firedm/setting.py

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -71,11 +71,11 @@ def locate_setting_folder():
7171

7272
# for compatibility with old project name 'PyIDM', will copy sett. files from old location
7373
if config.current_directory != config.global_sett_folder:
74-
pyidm_cfg_folder = config.global_sett_folder.replace('FireDM', 'PyIDM')
75-
log('found settings files in old application folder:', pyidm_cfg_folder)
76-
if os.path.isfile(os.path.join(pyidm_cfg_folder, 'setting.cfg')):
77-
for filename in os.listdir(pyidm_cfg_folder):
78-
filepath = os.path.join(pyidm_cfg_folder, filename)
74+
old_cfg_folder = config.global_sett_folder.replace('FireDM', 'PyIDM')
75+
log('found settings files in old application folder:', old_cfg_folder)
76+
if os.path.isfile(os.path.join(old_cfg_folder, 'setting.cfg')):
77+
for filename in os.listdir(old_cfg_folder):
78+
filepath = os.path.join(old_cfg_folder, filename)
7979
shutil.copy(filepath, setting_folder)
8080
log('copied file:', filepath, 'to:', setting_folder)
8181

@@ -261,4 +261,8 @@ def save_setting():
261261
json.dump(settings, f)
262262
log('setting saved in:', file)
263263
except Exception as e:
264-
log('save_setting() > error', e)
264+
log('save_setting() > error', e)
265+
266+
267+
268+

firedm/tkview.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3782,9 +3782,9 @@ def schedule(self, uid=None, video_idx=None):
37823782
def show_about_notes(self):
37833783
res = self.popup(about_notes, buttons=['Home', 'Help!', 'Close'], title='About FireDM')
37843784
if res == 'Help!':
3785-
open_webpage('https://github.com/pyIDM/PyIDM/blob/master/docs/user_guide.md')
3785+
open_webpage('https://github.com/firedm/FireDM/blob/master/docs/user_guide.md')
37863786
elif res == 'Home':
3787-
open_webpage('https://github.com/pyIDM/PyIDM/')
3787+
open_webpage('https://github.com/firedm/FireDM')
37883788

37893789
@busy_callback
37903790
def check_for_update(self):

firedm/update.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def check_for_new_version():
6767
log('Found new version:', str(latest_version))
6868

6969
# download change log file
70-
url = 'https://github.com/pyIDM/FireDM/raw/master/ChangeLog.txt'
70+
url = 'https://github.com/firedm/FireDM/raw/master/ChangeLog.txt'
7171
buffer = download(url, verbose=False) # get BytesIO object
7272

7373
if buffer:

firedm/video.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -877,7 +877,7 @@ def download_m3u8(url, http_headers=config.http_headers):
877877
def parse_subtitles(m3u8_doc, m3u8_url):
878878
# check subtitles in master m3u8, for some reasons youtube-dl doesn't recognize subtitles in m3u8 files
879879
# link: https://www.dplay.co.uk/show/ghost-loop/video/dead-and-breakfast/EHD_297528B
880-
# github issue: https://github.com/pyIDM/FireDM/issues/77
880+
# github issue: https://github.com/firedm/FireDM/issues/77
881881
# if youtube-dl fixes this problem in future, there is no need for this batch
882882
subtitles = {}
883883
lines = m3u8_doc.splitlines()

0 commit comments

Comments
 (0)