-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix 3.12 FileFinder no find_module error
- Loading branch information
1 parent
49c5f60
commit 7f9ba15
Showing
13 changed files
with
33 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,18 @@ | ||
from pathlib import Path | ||
from itertools import chain | ||
|
||
|
||
class ImageUploaded: | ||
def __init__(self, url, thumb=None): | ||
self.url = url | ||
self.thumb = thumb | ||
from differential.utils.image.types import ImageUploaded | ||
from differential.utils.image.byr import byr_upload | ||
from differential.utils.image.hdbits import hdbits_upload | ||
from differential.utils.image.imgbox import imgbox_upload | ||
from differential.utils.image.smms import smms_upload | ||
from differential.utils.image.ptpimg import ptpimg_upload | ||
from differential.utils.image.imgurl import imgurl_upload | ||
from differential.utils.image.chevereto import chevereto_api_upload, chevereto_cookie_upload, chevereto_username_upload | ||
from differential.utils.image.cloudinary import cloudinary_upload | ||
|
||
def __str__(self): | ||
if self.thumb: | ||
return f"[url={self.url}][img]{self.thumb}[/img][/url]" | ||
return f"[img]{self.url}[/img]" | ||
|
||
|
||
def get_all_images(folder: str) -> list: | ||
image_types = ("png", "jpg", "jpeg", "gif", "webp") | ||
for t in image_types: | ||
for i in Path(folder).glob("*.{}".format(t)): | ||
yield i | ||
|
||
from differential.utils.image.byr import byr_upload | ||
from differential.utils.image.hdbits import hdbits_upload | ||
from differential.utils.image.imgbox import imgbox_upload | ||
from differential.utils.image.smms import smms_upload | ||
from differential.utils.image.ptpimg import ptpimg_upload | ||
from differential.utils.image.imgurl import imgurl_upload | ||
from differential.utils.image.chevereto import chevereto_api_upload, chevereto_cookie_upload, chevereto_username_upload | ||
from differential.utils.image.cloudinary import cloudinary_upload |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
|
||
|
||
class ImageUploaded: | ||
def __init__(self, url, thumb=None): | ||
self.url = url | ||
self.thumb = thumb | ||
|
||
def __str__(self): | ||
if self.thumb: | ||
return f"[url={self.url}][img]{self.thumb}[/img][/url]" | ||
return f"[img]{self.url}[/img]" |