fix metadata extraction issue which was keeping windows newsfeed from building correctly

This commit is contained in:
idk
2023-01-13 07:37:02 +00:00
parent 6e921d2eaf
commit 0a950e769d
3 changed files with 33 additions and 37 deletions

View File

@ -34,7 +34,7 @@
As always it is recommended that you update to the latest version of the I2P router at your earliest convenient opportunity.
</p>
<ul>
<li><a href="http://git.idk.i2p/i2p-hackers/i2p.firefox/-/tree/i2p-firefox-2.1.0"></a></li>
<li><a href="http://git.idk.i2p/i2p-hackers/i2p.firefox/-/tree/i2p-firefox-2.1.0">Easy-Install Bundle Source</a></li>
<li><a href="http://git.idk.i2p/i2p-hackers/i2p.i2p/-/tree/i2p-2.1.0">Router Source</a></li>
<li><a href="http://git.idk.i2p/i2p-hackers/i2p.plugins.firefox/-/tree/1.0.7">Profile Manager Source</a></li>
</ul>
@ -50,25 +50,20 @@
published="2022-11-23T01:00:00Z"
updated="2022-11-23T01:00:00Z">
<details>
<summary>
<p>
The I2P Easy-Install bundle for Windows has been released.
In this release, support has been added for most major browsers, including all major Firefox(Gecko) and Chromium forks.
Compatibility with external I2P Service installs and un-bundled I2P user installs has been improved.
The Easy-Install bundle can now detect other I2P routers and prompt the user to launch them instead, if they already have I2P.
The browser extensions have been updated to the latest versions.
The Easy-Install now has access to `i2p.plugins.firefox`'s usability mode via the `-usability` command-line flag.
The default mode is the "Strict" mode where Javascript is disabled by NoScript.
In usability mode, Javascript is restricted by JShelter.
For more details, see the profile manager repository at i2pgit.org.
</p>
<p>
It is recommended that you update to this release for the best security, privacy, and performance, and to help the network.
</p>
</summary>
<summary>The I2P Easy-Install bundle for Windows has been released.</summary>
</details>
<p>
In this release, support has been added for most major browsers, including all major Firefox(Gecko) and Chromium forks.
Compatibility with external I2P Service installs and un-bundled I2P user installs has been improved.
The Easy-Install bundle can now detect other I2P routers and prompt the user to launch them instead, if they already have I2P.
The browser extensions have been updated to the latest versions.
The Easy-Install now has access to `i2p.plugins.firefox`'s usability mode via the `-usability` command-line flag.
The default mode is the "Strict" mode where Javascript is disabled by NoScript.
In usability mode, Javascript is restricted by JShelter.
For more details, see the profile manager repository at i2pgit.org.
</p>
<p>
It is recommended that you update to this release for the best security, privacy, and performance, and to help the network.
</p>
</article>

View File

@ -8,7 +8,11 @@
published="2023-01-13T01:00:00Z"
updated="2023-01-13T01:00:00Z">
<details>
<summary>Windows Easy-Install Bundle 2.1.0 released to improve stability, performance.</summary>
<summary>
<p>
Windows Easy-Install Bundle 2.1.0 released to improve stability, performance.
</p>
</summary>
</details>
<p>
The I2P Easy-Install bundle for Windows version 2.1.0 has been released.
@ -50,25 +54,20 @@
published="2022-11-23T01:00:00Z"
updated="2022-11-23T01:00:00Z">
<details>
<summary>
<p>
The I2P Easy-Install bundle for Windows has been released.
In this release, support has been added for most major browsers, including all major Firefox(Gecko) and Chromium forks.
Compatibility with external I2P Service installs and un-bundled I2P user installs has been improved.
The Easy-Install bundle can now detect other I2P routers and prompt the user to launch them instead, if they already have I2P.
The browser extensions have been updated to the latest versions.
The Easy-Install now has access to `i2p.plugins.firefox`'s usability mode via the `-usability` command-line flag.
The default mode is the "Strict" mode where Javascript is disabled by NoScript.
In usability mode, Javascript is restricted by JShelter.
For more details, see the profile manager repository at i2pgit.org.
</p>
<p>
It is recommended that you update to this release for the best security, privacy, and performance, and to help the network.
</p>
</summary>
<summary>The I2P Easy-Install bundle for Windows has been released.</summary>
</details>
<p>
In this release, support has been added for most major browsers, including all major Firefox(Gecko) and Chromium forks.
Compatibility with external I2P Service installs and un-bundled I2P user installs has been improved.
The Easy-Install bundle can now detect other I2P routers and prompt the user to launch them instead, if they already have I2P.
The browser extensions have been updated to the latest versions.
The Easy-Install now has access to `i2p.plugins.firefox`'s usability mode via the `-usability` command-line flag.
The default mode is the "Strict" mode where Javascript is disabled by NoScript.
In usability mode, Javascript is restricted by JShelter.
For more details, see the profile manager repository at i2pgit.org.
</p>
<p>
It is recommended that you update to this release for the best security, privacy, and performance, and to help the network.
</p>
</article>

View File

@ -88,7 +88,9 @@ def prepare_entries_file(fg, entries_file=None):
def extract_entry_metadata(s):
m = {k:v.strip('"') for k,v in re.findall(r'(\S+)=(".*?"|\S+)', s)}
m['summary'] = re.findall(r'<summary>(.*)</summary>', s)[0]
summary = re.findall(r'<summary>(.*)</summary>', s, re.DOTALL)
if len(summary) > 0:
m['summary'] = summary[0]
return m
def load_releases(fg):