8 Commits

Author SHA1 Message Date
d655a4bd32 fixed mirror not found error 2024-02-25 18:32:34 +05:30
9b696c7e9d updated about page 2024-02-15 22:53:41 +05:30
cbbe049ef8 reverted back to old version as the issue still exist 2024-02-15 22:52:33 +05:30
cddaeb553a updated version number 2024-02-15 22:31:16 +05:30
ced66d0d1c Merge branch 'main' of https://github.com/dstark5/Openlib 2024-02-15 22:26:27 +05:30
17dcbb05b3 Fixed no mirror and download failed error 2024-02-15 22:25:27 +05:30
27e43a358c Merge pull request #64 from inson1/patch-2
Fix dot in README.md
2024-02-07 15:06:02 +05:30
1715b73494 Fix dot in README.md 2024-02-06 10:37:42 +01:00
5 changed files with 18 additions and 15 deletions

View File

@ -97,7 +97,7 @@ Please report bugs via the [issue tracker](https://github.com/dstark5/Openlib/is
If you like Openlib, you're welcome to send a donation. If you like Openlib, you're welcome to send a donation.
#### [Donate To Annas Archive](https://annas-archive.org/donate?tier=1). #### [Donate To Annas Archive.](https://annas-archive.org/donate?tier=1)
## License ## License

View File

@ -166,26 +166,24 @@ class AnnasArchieve {
if (ul != null) { if (ul != null) {
var anchorTags = []; var anchorTags = [];
if (ul.length == 2) {
anchorTags = ul[1].querySelectorAll('a'); for (var e in ul) {
} else { anchorTags.insertAll(0, e.querySelectorAll('a'));
anchorTags = ul[0].querySelectorAll('a');
} }
for (var element in anchorTags) { for (var element in anchorTags) {
if (element.attributes['href']!.startsWith('https://')) { if (element.attributes['href'] != null &&
if (element.attributes['href'] != null &&
element.attributes['href'].startsWith('https://1lib.sk') !=
true) {
mirrors.add(element.attributes['href']!);
}
} else if (element.attributes['href'] != null &&
element.attributes['href']!.startsWith('/slow_download')) { element.attributes['href']!.startsWith('/slow_download')) {
String? url = await _getMirrorLink( String? url = await _getMirrorLink(
'$baseUrl${element.attributes['href']!}', userAgent, cookie); '$baseUrl${element.attributes['href']!}', userAgent, cookie);
if (url != null && url.isNotEmpty) { if (url != null && url.isNotEmpty) {
mirrors.add(url); mirrors.add(url);
} }
} else if (element.attributes['href']!.startsWith('https://')) {
if (element.attributes['href'] != null &&
element.attributes['href'].contains('ipfs') == true) {
mirrors.add(element.attributes['href']!);
}
} }
} }
} }

View File

@ -43,7 +43,7 @@ class AboutPage extends StatelessWidget {
Padding( Padding(
padding: EdgeInsets.only(left: 7, right: 7, top: 5), padding: EdgeInsets.only(left: 7, right: 7, top: 5),
child: Text( child: Text(
"1.0.5", "1.0.6",
style: TextStyle( style: TextStyle(
fontSize: 15, fontSize: 15,
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,

View File

@ -16,7 +16,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
# In Windows, build-name is used as the major, minor, and patch parts # In Windows, build-name is used as the major, minor, and patch parts
# of the product and file versions while build-number is used as the build suffix. # of the product and file versions while build-number is used as the build suffix.
version: 1.0.5+8 version: 1.0.6+9
environment: environment:
sdk: '>=3.0.5 <4.0.0' sdk: '>=3.0.5 <4.0.0'

View File

@ -10,6 +10,11 @@ include(${EPHEMERAL_DIR}/generated_config.cmake)
# https://github.com/flutter/flutter/issues/57146. # https://github.com/flutter/flutter/issues/57146.
set(WRAPPER_ROOT "${EPHEMERAL_DIR}/cpp_client_wrapper") set(WRAPPER_ROOT "${EPHEMERAL_DIR}/cpp_client_wrapper")
# Set fallback configurations for older versions of the flutter tool.
if (NOT DEFINED FLUTTER_TARGET_PLATFORM)
set(FLUTTER_TARGET_PLATFORM "windows-x64")
endif()
# === Flutter Library === # === Flutter Library ===
set(FLUTTER_LIBRARY "${EPHEMERAL_DIR}/flutter_windows.dll") set(FLUTTER_LIBRARY "${EPHEMERAL_DIR}/flutter_windows.dll")
@ -92,7 +97,7 @@ add_custom_command(
COMMAND ${CMAKE_COMMAND} -E env COMMAND ${CMAKE_COMMAND} -E env
${FLUTTER_TOOL_ENVIRONMENT} ${FLUTTER_TOOL_ENVIRONMENT}
"${FLUTTER_ROOT}/packages/flutter_tools/bin/tool_backend.bat" "${FLUTTER_ROOT}/packages/flutter_tools/bin/tool_backend.bat"
windows-x64 $<CONFIG> ${FLUTTER_TARGET_PLATFORM} $<CONFIG>
VERBATIM VERBATIM
) )
add_custom_target(flutter_assemble DEPENDS add_custom_target(flutter_assemble DEPENDS