Skip to content

magnet truncated #1

@cpnfeeny

Description

@cpnfeeny

grep -Po "magnet:\?xt=urn:btih:[a-zA-Z0-9]*"
truncates the magnet at the first ampersand.

Maybe try:
magnet=$(grep -Po "magnet:\?xt=urn:btih:[[:alnum:][:punct:]]*" $cachedir/tmp.html | head -n 1)
deluge=$(echo "$magnet" | tr -d \")
deluge-console add "$deluge"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions