Update 'src/get-feeds'

This commit is contained in:
Thelie 2021-10-17 14:33:39 +02:00
parent a1d3f9dd89
commit 85da5053cb

View file

@ -1,5 +1,22 @@
#!/bin/sh #!/bin/sh
# Copyright (c) 2021 Daniel Mowitz <xslfeed.daniel@mowitz.rocks>
#
# This file is part of xslfeed.
#
# xslfeed is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published
# by the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# xslfeed is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with xslfeed. If not, see <https://www.gnu.org/licenses/>.
feeds=`xsltproc /etc/xslfeed/opml2list.xml $HOME/xslfeed/feeds.opml |\ feeds=`xsltproc /etc/xslfeed/opml2list.xml $HOME/xslfeed/feeds.opml |\
sed -e 's/|//' -e 's/ :/ /' -e 's/: / /' -e 's/- / /' -e 's/ -/ /' \ sed -e 's/|//' -e 's/ :/ /' -e 's/: / /' -e 's/- / /' -e 's/ -/ /' \
-e 's/\([^"]\) \([^"]\)/\1_\2/g' -e 's/\([^"]\) \([^"]\)/\1_\2/g' -e 's/"//g' ` -e 's/\([^"]\) \([^"]\)/\1_\2/g' -e 's/\([^"]\) \([^"]\)/\1_\2/g' -e 's/"//g' `