AutoTools How To Use the Card List Web Screen 2017-06-23

Learn how use the card list web screen to create a YouTube search screen

  1. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,477
    Likes Received:
    799
    joaomgcd submitted a new AutoApps project:

    How To Use the Card List Web Screen - Learn how use the card list web screen to create a YouTube search screen

    Read more about this project...
     
  2. PONKiE

    PONKiE New Member

    Joined:
    Feb 5, 2018
    Messages:
    17
    Likes Received:
    0
    When I use this, the first result on the web screen always shows the right image and the link is right, but the text is the channel info text. This displaces all my texts so I always have to read the next search result description.

    Any idea where I'm going wrong?
    Search for Emergency Awesome or Cynicalex. The image and link will be right. The text will show main channel text.
     
  3. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,477
    Likes Received:
    799
    Sorry about that, but can you maybe show a screenshot so I can understand your issue? Thanks!
     
  4. PONKiE

    PONKiE New Member

    Joined:
    Feb 5, 2018
    Messages:
    17
    Likes Received:
    0
    Ive shot a video for you...
    I hope you can see what I mean. It's a little hard to follow.

    https://drive.google.com/file/d/1BruDsIg5_noSs7jUFXMDne9XcfTlPLez/view?usp=sharing


    at 30s in the video you will see me point out a captain america image with the word 'PREVIEW' on it.
    But the text and title that should be there show with the next video in line...

    It's like that for ALL my videos.
    See how the text and title of the first search result show channel info.

    upload_2018-3-22_14-38-24.png

    And for the record, The video that shows in the image opens as it should. It's just the texts that are wrong.
     
    Last edited: Mar 22, 2018
  5. PONKiE

    PONKiE New Member

    Joined:
    Feb 5, 2018
    Messages:
    17
    Likes Received:
    0
    Here you see a good example...

    https://drive.google.com/file/d/1BU3SwqaxvYA0FA9_O6uvLN8jeR9UDKiI/view?usp=sharing

    See how I click the Iris West video, but the text in the search result shows info on Infinity War trailer, which was the previous search result.

    !! ALSO important, this does not happen for videos without a channel. If I look for 'cats' for example, the text is correct.
    It's just when the search matches a channeltitle I think...
     
    Last edited: Mar 22, 2018
  6. PONKiE

    PONKiE New Member

    Joined:
    Feb 5, 2018
    Messages:
    17
    Likes Received:
    0
    It would be awesome if the first search result would actually show as a link to the youtube channel page.
     
  7. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,477
    Likes Received:
    799
    Thanks. Can you show me what data you're using to populate the screen? It must have to do something with the separators, or maybe some data is missing...
     
  8. PONKiE

    PONKiE New Member

    Joined:
    Feb 5, 2018
    Messages:
    17
    Likes Received:
    0
    YouTube Search (56)
    A1: AutoTools Dialog [ Configuration:Dialog Type: Input
    Title: <font color="FFFFFFFF">Zoeken... </font>
    Title Alignment: Left
    Icon: icon-pack://com.Fraom.PixxoUI/google_youtube
    Text Size: 20
    Text Color: #424242
    Button Text Color: #424242
    Input Type: Text
    Input Text: %Youtube
    Input Line Color: #EEEEEE
    Output Variable: attext
    Get Text If Cancelled: true
    Background Color: #FFFFFFFF
    Title Background: #212121
    Dim Background: true
    Top Margin: 16
    Bottom Margin: 16
    Bottom Buttons Top Margin: 16
    Bottom Buttons Bottom Margin: 16
    Cancelable: true
    Turn Screen On: true
    Offset Y: -75 Timeout (Seconds):60 ]
    A2: Variable Set [ Name:%Youtube To:%attext Recurse Variables:Off Do Maths:Off Append:Off ]
    A3: Variable Set [ Name:%Youtube2 To:%Youtube Recurse Variables:Off Do Maths:Off Append:Off ]
    A4: If [ %atbutton ~ 2 ]
    A5: Variable Set [ Name:%separator To:### Recurse Variables:Off Do Maths:Off Append:Off ]
    A6: Variable Set [ Name:%query To:%Youtube Recurse Variables:Off Do Maths:Off Append:Off ]
    A7: AutoWeb Web Service [ Configuration:API: YouTube
    API Action: Search
    Max Results: 20
    Join Output Arrays: %separator Timeout (Seconds):120 ]
    A8: AutoTools Arrays [ Configuration:Input Arrays: %videoid|
    Separator: |
    Item Separator: %separator
    Names: videoid
    Output Variables Separator: ,
    Merge Arrays: true
    Merged Array Name: images
    Merge Format: http://img.youtube.com/vi/{0}/mqdefault.jpg
    Join Merged Arrays: %separator
    Join Merged Arrays: %separator Timeout (Seconds):60 ]
    A9: AutoTools Arrays [ Configuration:Input Arrays: %videoid|
    Separator: |
    Item Separator: %separator
    Names: videoid
    Output Variables Separator: ,
    Merge Arrays: true
    Merged Array Name: videourls
    Merge Format: https://www.youtube.com/watch?v={0}
    Join Merged Arrays: %separator
    Join Merged Arrays: %separator Timeout (Seconds):60 ]
    A10: AutoTools Web Screen [ Configuration:Screen Preset: Card List
    Display Mode: Normal
    Source: /storage/emulated/0/AutoTools/cardlist/page.html
    Toast Duration: 50
     
  9. Baffo

    Baffo New Member

    Joined:
    Mar 19, 2019
    Messages:
    5
    Likes Received:
    0
    Video of step 7 doesnt work
     
  10. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,477
    Likes Received:
    799
    Thank you! Fixed!
     
  11. luks_abido

    luks_abido New Member

    Joined:
    May 13, 2020
    Messages:
    9
    Likes Received:
    0
    Hi @joaomgcd

    I used this web screen to create a wishlist of Nintendo switch games.
    I would like the web screen to be kept in recent apps as if it was a regular app. Right now if I go home or open one of the links inside the web screen, it vanishes from recents and I have to run the task again, reloading it.
    Is that possible?

    Edit: the project I created for the wishlist is described here if anyone is interested: https://www.reddit.com/r/tasker/comments/kll151/nintendo_switch_wish_list_and_price_watcher/
     
    Last edited: Jan 4, 2021

Share This Page