Skip to content

Commit ccbd13c

Browse files
committed
RedDownloader 3.2.5 Release
1 parent 21e6cf8 commit ccbd13c

6 files changed

Lines changed: 39 additions & 14 deletions

File tree

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,9 @@
4141

4242
<h1> Introduction </h1>
4343

44-
A very easy to use library to download videos from reddit with sound without installing external installation of ffmpeg. The library can also be used to download pictures and even picture galleries all just with a reddit post link. With RedDownloader 3 you can access Reddit API methods without having your own bot with classes such as ```DownloadBySubreddit``` more on that below.
45-
note that this package does only download media from posts with images/video directly uploaded to reddit and not from sources like imgur or youtube / vimeo.
44+
A very easy to use library to download videos from reddit with sound. The library can also be used to download pictures and even picture galleries all just with a reddit post link. You can access Reddit API methods without having your own bot with classes such as ```DownloadBySubreddit``` more on that below.
45+
46+
<b>NOTE: </b> this package only downloads media from posts with images/video directly uploaded to reddit and not from sources like imgur or youtube / vimeo which are posted to Reddit.
4647

4748
<h1> Installation </h1>
4849
To Install the package:
21.4 KB
Binary file not shown.

dist/RedDownloader-3.2.5.tar.gz

24.4 KB
Binary file not shown.

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55

66
setuptools.setup(
77
name="RedDownloader",
8-
version="3.2.4",
8+
version="3.2.5",
99
author="Arnav Bajaj",
1010
author_email="arnavbajaj9@gmail.com",
11-
description="A package to download Reddit hosted videos with sound without manual installation of ffmpeg and other media as well with the post's url",
11+
description="A package to download Reddit hosted videos easily and efficiently.",
1212
long_description=long_description,
1313
long_description_content_type="text/markdown",
1414
url="https://github.com/JackhammerYT/RedVidDownloader",

src/RedDownloader.egg-info/PKG-INFO

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Metadata-Version: 2.1
22
Name: RedDownloader
3-
Version: 3.2.4
4-
Summary: A package to download Reddit hosted videos with sound without manual installation of ffmpeg and other media as well with the post's url
3+
Version: 3.2.5
4+
Summary: A package to download Reddit hosted videos easily and efficiently.
55
Home-page: https://github.com/JackhammerYT/RedVidDownloader
66
Author: Arnav Bajaj
77
Author-email: arnavbajaj9@gmail.com
@@ -56,8 +56,9 @@ License-File: LICENSE
5656

5757
<h1> Introduction </h1>
5858

59-
A very easy to use library to download videos from reddit with sound without installing external installation of ffmpeg. The library can also be used to download pictures and even picture galleries all just with a reddit post link. With RedDownloader 3 you can access Reddit API methods without having your own bot with classes such as ```DownloadBySubreddit``` more on that below.
60-
note that this package does only download media from posts with images/video directly uploaded to reddit and not from sources like imgur or youtube / vimeo.
59+
A very easy to use library to download videos from reddit with sound. The library can also be used to download pictures and even picture galleries all just with a reddit post link. You can access Reddit API methods without having your own bot with classes such as ```DownloadBySubreddit``` more on that below.
60+
61+
<b>NOTE: </b> this package only downloads media from posts with images/video directly uploaded to reddit and not from sources like imgur or youtube / vimeo which are posted to Reddit.
6162

6263
<h1> Installation </h1>
6364
To Install the package:

src/RedDownloader/RedDownloader.py

Lines changed: 29 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
'''
2-
This is the main source file for RedDownloader Version 3.2.4 with it's primary
2+
This is the main source file for RedDownloader Version 3.2.5 with it's primary
33
usage being downloading Reddit Posts i.e Image Posts , Videos , Gifs , Gallery
44
Posts.
55
'''
@@ -342,11 +342,16 @@ def __init__(
342342
self.cachedLinks = json.load(f)
343343
f.close()
344344

345+
ToBeRemoved = []
345346
for link in Links:
347+
346348
if link not in self.cachedLinks:
347349
self.cachedLinks.append(link)
348350
else:
349-
Links.remove(link)
351+
ToBeRemoved.append(link)
352+
353+
for link in ToBeRemoved:
354+
Links.remove(link)
350355

351356
with open(cachefile, 'w') as f:
352357
json.dump(self.cachedLinks, f)
@@ -484,11 +489,16 @@ def __init__(
484489
self.cachedLinks = json.load(f)
485490
f.close()
486491

492+
ToBeRemoved = []
487493
for link in Links:
494+
print(link)
488495
if link not in self.cachedLinks:
489496
self.cachedLinks.append(link)
490497
else:
491-
Links.remove(link)
498+
ToBeRemoved.append(link)
499+
500+
for link in ToBeRemoved:
501+
Links.remove(link)
492502

493503
with open(cachefile, 'w') as f:
494504
json.dump(self.cachedLinks, f)
@@ -616,6 +626,7 @@ def __init__(
616626
'flair': flair,
617627
'sort': SortBy})
618628
Links = json.loads(self.PostLinks.content)
629+
619630
if cachefile is not None:
620631
if os.stat(cachefile).st_size == 0:
621632
with open(cachefile, 'w') as f:
@@ -626,16 +637,21 @@ def __init__(
626637
self.cachedLinks = json.load(f)
627638
f.close()
628639

640+
ToBeRemoved = []
629641
for link in Links:
630-
print(link, Links, len(Links))
642+
print(link)
631643
if link not in self.cachedLinks:
632644
self.cachedLinks.append(link)
633645
else:
634-
Links.remove(link)
646+
ToBeRemoved.append(link)
647+
648+
for link in ToBeRemoved:
649+
Links.remove(link)
635650

636651
with open(cachefile, 'w') as f:
637652
json.dump(self.cachedLinks, f)
638653
f.close()
654+
639655
self.ProcessedLinks = Links
640656
self.DownloadLinks(
641657
self.ProcessedLinks, quality, output, destination)
@@ -757,6 +773,7 @@ def __init__(
757773
'flair': flair,
758774
'sort': SortBy})
759775
Links = json.loads(self.PostLinks.content)
776+
760777
if cachefile is not None:
761778
if os.stat(cachefile).st_size == 0:
762779
with open(cachefile, 'w') as f:
@@ -767,15 +784,21 @@ def __init__(
767784
self.cachedLinks = json.load(f)
768785
f.close()
769786

787+
ToBeRemoved = []
770788
for link in Links:
789+
print(link)
771790
if link not in self.cachedLinks:
772791
self.cachedLinks.append(link)
773792
else:
774-
Links.remove(link)
793+
ToBeRemoved.append(link)
794+
795+
for link in ToBeRemoved:
796+
Links.remove(link)
775797

776798
with open(cachefile, 'w') as f:
777799
json.dump(self.cachedLinks, f)
778800
f.close()
801+
779802
self.ProcessedLinks = Links
780803
self.DownloadLinks(
781804
self.ProcessedLinks, quality, output, destination)

0 commit comments

Comments
 (0)