This commit is contained in:
Matyáš Caras 2022-04-05 17:54:00 +02:00
parent e916196f8b
commit d7d51cfc7f
3 changed files with 11 additions and 7 deletions

View file

@ -1,5 +1,8 @@
## 0.1.0-alpha.10
- Doufám, že skutečně opraví získávání URL
- Lepší formátování názvu
## 0.1.0-alpha.9 ## 0.1.0-alpha.9
- Opravit opravu - Vzít změny zpět
## 0.1.0-alpha.8 ## 0.1.0-alpha.8
- Opravit získávání URL z burzy v `jidelnicekDen` - Opravit získávání URL z burzy v `jidelnicekDen`
- tridy.dart - Burza: ~~jidlo~~ --> __nazev__ - tridy.dart - Burza: ~~jidlo~~ --> __nazev__

View file

@ -260,9 +260,8 @@ class Canteen {
.group(0) .group(0)
.toString()); .toString());
var jidla = <Jidlo>[]; var jidla = <Jidlo>[];
var jidelnicek = RegExp( var jidelnicek =
r'((?<=<div class="jidWrapLeft">).+?((?=<br>)|(do burzy)))', RegExp(r'(?<=<div class="jidWrapLeft">).+?((fa-clock))', dotAll: true)
dotAll: true)
.allMatches(res) .allMatches(res)
.toList(); .toList();
for (var obed in jidelnicek) { for (var obed in jidelnicek) {
@ -286,6 +285,8 @@ class Canteen {
.firstMatch(o)! .firstMatch(o)!
.group(0) .group(0)
.toString() .toString()
.replaceAll(' ,', ",")
.replaceAll(" <br>", "")
.split(" / "); .split(" / ");
var vydejna = RegExp( var vydejna = RegExp(
r'(?<=<span class="smallBoldTitle button-link-align">).+?(?=<)') r'(?<=<span class="smallBoldTitle button-link-align">).+?(?=<)')

View file

@ -1,6 +1,6 @@
name: canteenlib name: canteenlib
description: Library for communication with the czech canteen food ordering system iCanteen description: Library for communication with the czech canteen food ordering system iCanteen
version: 0.1.0-alpha.9 version: 0.1.0-alpha.10
repository: 'https://github.com/hernikplays/canteenlib' repository: 'https://github.com/hernikplays/canteenlib'
issue_tracker: 'https://github.com/hernikplays/canteenlib/issues' issue_tracker: 'https://github.com/hernikplays/canteenlib/issues'
documentation: 'https://docs.hernikplays.cz' documentation: 'https://docs.hernikplays.cz'