edge case when type no specified for sm fkn reason
This commit is contained in:
parent
cc39e971e2
commit
9b7560fb14
31
boiiiwd_package/src/f.html
Normal file
31
boiiiwd_package/src/f.html
Normal file
@ -0,0 +1,31 @@
|
||||
<div class="rightDetailsBlock">
|
||||
<div class="detailsStatsContainerLeft">
|
||||
<div class="detailsStatLeft">File Size </div>
|
||||
<div class="detailsStatLeft">Posted </div>
|
||||
<div class="detailsStatLeft">Updated </div>
|
||||
|
||||
</div>
|
||||
<div class="detailsStatsContainerRight">
|
||||
<div class="detailsStatRight">0.041 MB</div>
|
||||
<div class="detailsStatRight">30 Sep, 2016 @ 1:03pm</div>
|
||||
<div class="detailsStatRight">1 Oct, 2016 @ 12:19pm</div>
|
||||
</div>
|
||||
<div style="clear:left"></div>
|
||||
<div class="detailsStatNumChangeNotes">
|
||||
3 Change Notes <span class="change_note_link"><a
|
||||
href="https://steamcommunity.com/sharedfiles/filedetails/changelog/772261373">( view )</a></span>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="rightDetailsBlock">
|
||||
<a
|
||||
href="https://steamcommunity.com/workshop/browse/?appid=311210&browsesort=toprated&section=readytouseitems&requiredtags%5B%5D=Map">Map</a>,
|
||||
<a
|
||||
href="https://steamcommunity.com/workshop/browse/?appid=311210&browsesort=toprated&section=readytouseitems&requiredtags%5B%5D=Mod">Mod</a>,
|
||||
<a
|
||||
href="https://steamcommunity.com/workshop/browse/?appid=311210&browsesort=toprated&section=readytouseitems&requiredtags%5B%5D=Zombies">Zombies</a>
|
||||
</div>
|
@ -480,7 +480,8 @@ class LibraryTab(ctk.CTkScrollableFrame):
|
||||
soup = BeautifulSoup(content, "html.parser")
|
||||
|
||||
try:
|
||||
map_mod_type = soup.find("div", class_="rightDetailsBlock").text.strip()
|
||||
type_txt = soup.find("div", class_="rightDetailsBlock").text.strip()
|
||||
map_mod_type = type_txt if "File Size" not in type_txt else "Not specified"
|
||||
map_name = soup.find("div", class_="workshopItemTitle").text.strip()
|
||||
map_size = map_size = get_workshop_file_size(workshop_id, raw=True)
|
||||
details_stats_container = soup.find("div", class_="detailsStatsContainerRight")
|
||||
|
@ -587,7 +587,8 @@ class BOIIIWD(ctk.CTk):
|
||||
soup = BeautifulSoup(content, "html.parser")
|
||||
|
||||
try:
|
||||
map_mod_type = soup.find("div", class_="rightDetailsBlock").text.strip()
|
||||
type_txt = soup.find("div", class_="rightDetailsBlock").text.strip()
|
||||
map_mod_type = type_txt if "File Size" not in type_txt else "Not specified"
|
||||
map_name = soup.find("div", class_="workshopItemTitle").text.strip()
|
||||
map_size = map_size = get_workshop_file_size(workshop_id, raw=True)
|
||||
details_stats_container = soup.find("div", class_="detailsStatsContainerRight")
|
||||
|
Loading…
Reference in New Issue
Block a user